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

Updating steps.Git to allow incremental fetch. #6483

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

shareefj
Copy link
Contributor

@shareefj shareefj commented Apr 8, 2022

This fix updates Git#_fetch to check self.mode == 'incremental' before performing the checkout. I've updated all the tests but wanted some feedback given this seems to be such fundamental behaviour. It may be that I'm misunderstanding how this should work as I can't have been the first person to try an 'incremental' update.

Contributor Checklist:

  • I have updated the unit tests
  • I have created a file in the newsfragments directory (and read the README.txt in that directory)
  • I have updated the appropriate documentation

@shareefj
Copy link
Contributor Author

shareefj commented Apr 8, 2022

This PR fixes #6482

@shareefj shareefj force-pushed the bugfix/allow_incremental_clone branch from d22219d to 2e4e352 Compare April 9, 2022 13:11
@p12tic
Copy link
Member

p12tic commented Apr 25, 2022

@shareefj Thanks for the PR. The difference between full and incremental checkouts is that in the former case previous repository is thrown away and cloned cleanly, whereas in the incremental checkout case the existing repository is reused.

I think in this case it makes sense to introduce an additional mode, e.g. incremental_keep_changes.

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

Successfully merging this pull request may close these issues.

None yet

2 participants