Commit ·
e3107d8
1
Parent(s): 98990ac
Update get_single_diffs.py
Browse files13 unmodified lines141516171819202113 unmodified lines"""#Shell utilsdef run_in_shell(cmd: str, cwd=None, timeout=120):# Default 2min timeout (mostly for git fetch --depth 2 origin when the repo is private & GH asks for a username)completed = subprocess.run([cmd], capture_output=True, shell=True, cwd=cwd, timeout=timeout)return completed13 unmodified lines141516171819202113 unmodified lines"""#Shell utilsdef run_in_shell(cmd: str, cwd=None, timeout=10):# Default 10sec timeout (mostly for git fetch --depth 2 origin when the repo is private & GH asks for a username)completed = subprocess.run([cmd], capture_output=True, shell=True, cwd=cwd, timeout=timeout)return completed
get_single_diffs.py+2-2