From f1a7ee91c6bcfb8396bbb76b4bc7bac1b51ed8e3 Mon Sep 17 00:00:00 2001 From: "mulin.lyh" Date: Wed, 7 Dec 2022 13:14:22 +0800 Subject: [PATCH] [to #46604161]fix: git repository initialize lfs bug Link: https://code.alibaba-inc.com/Ali-MaaS/MaaS-lib/codereview/11005012 --- modelscope/hub/git.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modelscope/hub/git.py b/modelscope/hub/git.py index 7943023b..51474504 100644 --- a/modelscope/hub/git.py +++ b/modelscope/hub/git.py @@ -94,7 +94,7 @@ class GitCommandWrapper(metaclass=Singleton): return False def git_lfs_install(self, repo_dir): - cmd = ['git', '-C', repo_dir, 'lfs', 'install'] + cmd = ['-C', repo_dir, 'lfs', 'install'] try: self._run_git_command(*cmd) return True