diff --git a/github_backup/github_backup.py b/github_backup/github_backup.py index 562313a..be37b53 100644 --- a/github_backup/github_backup.py +++ b/github_backup/github_backup.py @@ -1314,7 +1314,9 @@ def fetch_repository( if lfs_clone: git_command = ["git", "lfs", "fetch", "--all", "--prune"] else: - git_command = ["git", "fetch", "--all", "--force", "--tags", "--prune"] + # git_command = ['git', 'fetch', '--all', '--force', '--tags', '--prune'] + git_command = ['git', 'pull', '--all'] + if no_prune: git_command.pop() logging_subprocess(git_command, cwd=local_dir)