Commit
·
ff09ecc
1
Parent(s):
af3d2c7
Update get_single_diffs.py
Browse files- get_single_diffs.py +1 -1
get_single_diffs.py
CHANGED
@@ -26,7 +26,7 @@ def get_file_contents(commit, old_file, new_file, repo, cwd=None):
|
|
26 |
completed = run_in_shell("git fetch --depth 2 origin " + commit, cwd=cwd)
|
27 |
# If it times out as repo requires a username
|
28 |
if completed.returncode != 0:
|
29 |
-
return
|
30 |
git_diff = run_in_shell(f"git diff {commit}^ {commit}", cwd=cwd).stdout.decode()
|
31 |
return git_diff
|
32 |
|
|
|
26 |
completed = run_in_shell("git fetch --depth 2 origin " + commit, cwd=cwd)
|
27 |
# If it times out as repo requires a username
|
28 |
if completed.returncode != 0:
|
29 |
+
return ""
|
30 |
git_diff = run_in_shell(f"git diff {commit}^ {commit}", cwd=cwd).stdout.decode()
|
31 |
return git_diff
|
32 |
|