From 0a30a92fe4fb071ae8a7cc08eaef701cfc630ec1 Mon Sep 17 00:00:00 2001 From: Jonas Date: Tue, 6 Jul 2021 06:21:06 +0200 Subject: [PATCH] pull changes from remote use `git pull` to pull actual files from the remote instead of using `fetch` for only the metadata --- github_backup/github_backup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/github_backup/github_backup.py b/github_backup/github_backup.py index 98296d1..4d0c647 100644 --- a/github_backup/github_backup.py +++ b/github_backup/github_backup.py @@ -1066,7 +1066,7 @@ def fetch_repository(name, if lfs_clone: git_command = ['git', 'lfs', 'fetch', '--all', '--prune'] else: - git_command = ['git', 'fetch', '--all', '--force', '--tags', '--prune'] + git_command = ['git', 'pull', '--all', '--force', '--tags', '--prune'] logging_subprocess(git_command, None, cwd=local_dir) else: log_info('Cloning {0} repository from {1} to {2}'.format(