suppress output of call to git lfs version

This commit is contained in:
Changaco
2026-04-10 15:25:05 +00:00
parent f8cdf55050
commit ddf82f1115

View File

@@ -1781,7 +1781,10 @@ def get_authenticated_user(args):
def check_git_lfs_install():
exit_code = subprocess.call(["git", "lfs", "version"])
exit_code = subprocess.call(
["git", "lfs", "version"],
stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL,
)
if exit_code != 0:
raise Exception(
"The argument --lfs requires you to have Git LFS installed.\nYou can get it from https://git-lfs.github.com."