Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
codysch opened this issue Apr 20, 2023 · 1 comment

Comments

@codysch
Copy link

codysch commented Apr 20, 2023

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
@josegonzalez
Copy link
Owner

Pull requests welcome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants