Skip to content

Commit 0a30a92

Browse files
authored
pull changes from remote
use `git pull` to pull actual files from the remote instead of using `fetch` for only the metadata
1 parent 853b7c4 commit 0a30a92

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

github_backup/github_backup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1066,7 +1066,7 @@ def fetch_repository(name,
10661066
if lfs_clone:
10671067
git_command = ['git', 'lfs', 'fetch', '--all', '--prune']
10681068
else:
1069-
git_command = ['git', 'fetch', '--all', '--force', '--tags', '--prune']
1069+
git_command = ['git', 'pull', '--all', '--force', '--tags', '--prune']
10701070
logging_subprocess(git_command, None, cwd=local_dir)
10711071
else:
10721072
log_info('Cloning {0} repository from {1} to {2}'.format(

0 commit comments

Comments
 (0)