Skip to content

Commit 2c7fdab

Browse files
authored
Merge pull request #507 from Changaco/output-cleanup
Hide output of `git lfs version`
2 parents 334c6c6 + ddf82f1 commit 2c7fdab

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
@@ -1782,7 +1782,10 @@ def get_authenticated_user(args):
17821782

17831783

17841784
def check_git_lfs_install():
1785-
exit_code = subprocess.call(["git", "lfs", "version"])
1785+
exit_code = subprocess.call(
1786+
["git", "lfs", "version"],
1787+
stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL,
1788+
)
17861789
if exit_code != 0:
17871790
raise Exception(
17881791
"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)