Skip to content

Add option to disable --prune when updating repository #194

@k0rnpisey

Description

@k0rnpisey

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions