Skip to content

Commit 2f130ec

Browse files
committed
remove bad invocation of the system shell
1 parent ddf7f82 commit 2f130ec

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

github_backup/github_backup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2980,7 +2980,7 @@ def fetch_repository(
29802980
masked_remote_url = mask_password(remote_url)
29812981

29822982
initialized = subprocess.call(
2983-
"git ls-remote " + remote_url, stdout=FNULL, stderr=FNULL, shell=True
2983+
["git", "ls-remote", remote_url], stdout=FNULL, stderr=FNULL
29842984
)
29852985
if initialized == 128:
29862986
if ".wiki.git" in remote_url:

0 commit comments

Comments
 (0)