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

When the `--lfs` option is used, after first clone non-lfs content is no longer fetched

Open codysch opened this issue 2 years ago • 2 comments

It's because of these lines:

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

Which should instead be something like

        git_command = ['git', 'fetch', '--all', '--force', '--tags', '--prune']
        # TODO: execute the first git command
        if lfs_clone:
            git_command = ['git', 'lfs', 'fetch', '--all', '--prune']
            # TODO: execute this second git command

codysch avatar Apr 20 '23 15:04 codysch

Pull requests welcome.

josegonzalez avatar May 29 '23 22:05 josegonzalez

I made a PR for this: #338

uportalis avatar Sep 10 '24 10:09 uportalis