python-github-backup icon indicating copy to clipboard operation
python-github-backup copied to clipboard

Add option to disable --prune when updating repository

Open k0rnpisey opened this issue 3 years ago • 0 comments

It would be grate to have an option to disable prune remote-tracking branches no longer on remote when updating a repositoty.

Snippet code of how it is implemented:

if lfs_clone:
    git_command = ['git', 'lfs', 'fetch', '--all', '--prune']
 else:
    git_command = ['git', 'fetch', '--all', '--force', '--tags', '--prune']

I'm willing to give PR for this option.

Do you think having this option interferes with others?

k0rnpisey avatar Mar 23 '22 02:03 k0rnpisey