Skip to content

Commit f3eabf0

Browse files
committed
don't pass stdin when doing so can't do any good
When the child process doesn't inherit stderr, it can't ask the user for input, so it shouldn't inherit stdin either.
1 parent b92aee6 commit f3eabf0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

github_backup/github_backup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1781,7 +1781,7 @@ def get_authenticated_user(args):
17811781

17821782
def check_git_lfs_install():
17831783
exit_code = subprocess.call(
1784-
["git", "lfs", "version"],
1784+
["git", "lfs", "version"], stdin=subprocess.DEVNULL,
17851785
stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL,
17861786
)
17871787
if exit_code != 0:
@@ -2982,7 +2982,7 @@ def fetch_repository(
29822982
masked_remote_url = mask_password(remote_url)
29832983

29842984
initialized = subprocess.call(
2985-
["git", "ls-remote", remote_url],
2985+
["git", "ls-remote", remote_url], stdin=subprocess.DEVNULL,
29862986
stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL,
29872987
)
29882988
if initialized == 128:

0 commit comments

Comments
 (0)