Commit
·
e3107d8
1
Parent(s):
98990ac
Update get_single_diffs.py
Browse files- get_single_diffs.py +2 -2
get_single_diffs.py
CHANGED
|
@@ -14,8 +14,8 @@ git checkout FETCH_HEAD^ -- README.md
|
|
| 14 |
"""
|
| 15 |
|
| 16 |
#Shell utils
|
| 17 |
-
def run_in_shell(cmd: str, cwd=None, timeout=
|
| 18 |
-
# Default
|
| 19 |
completed = subprocess.run([cmd], capture_output=True, shell=True, cwd=cwd, timeout=timeout)
|
| 20 |
return completed
|
| 21 |
|
|
|
|
| 14 |
"""
|
| 15 |
|
| 16 |
#Shell utils
|
| 17 |
+
def run_in_shell(cmd: str, cwd=None, timeout=10):
|
| 18 |
+
# Default 10sec timeout (mostly for git fetch --depth 2 origin when the repo is private & GH asks for a username)
|
| 19 |
completed = subprocess.run([cmd], capture_output=True, shell=True, cwd=cwd, timeout=timeout)
|
| 20 |
return completed
|
| 21 |
|