Skip to content

Commit ddf82f1

Browse files
committed
suppress output of call to git lfs version
1 parent f8cdf55 commit ddf82f1

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

github_backup/github_backup.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1781,7 +1781,10 @@ def get_authenticated_user(args):
17811781

17821782

17831783
def check_git_lfs_install():
1784-
exit_code = subprocess.call(["git", "lfs", "version"])
1784+
exit_code = subprocess.call(
1785+
["git", "lfs", "version"],
1786+
stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL,
1787+
)
17851788
if exit_code != 0:
17861789
raise Exception(
17871790
"The argument --lfs requires you to have Git LFS installed.\nYou can get it from https://git-lfs.github.com."

0 commit comments

Comments
 (0)