Merge pull request #465 from Iamrodos/fix/379-lfs-clone-deprecated

fix: replace deprecated git lfs clone with git clone + git lfs fetch --all
This commit is contained in:
Jose Diaz-Gonzalez
2025-12-11 11:49:53 -05:00
committed by GitHub
2 changed files with 8 additions and 4 deletions

View File

@@ -2090,11 +2090,13 @@ def fetch_repository(
git_command.pop()
logging_subprocess(git_command, cwd=local_dir)
else:
if lfs_clone:
git_command = ["git", "lfs", "clone", remote_url, local_dir]
else:
git_command = ["git", "clone", remote_url, local_dir]
git_command = ["git", "clone", remote_url, local_dir]
logging_subprocess(git_command)
if lfs_clone:
git_command = ["git", "lfs", "fetch", "--all", "--prune"]
if no_prune:
git_command.pop()
logging_subprocess(git_command, cwd=local_dir)
def backup_account(args, output_directory):