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

Fix for #555 - issues with merge + shallow clones #556

Merged
merged 1 commit into from
Feb 17, 2022
Merged

Conversation

olsen232
Copy link
Collaborator

libgit2 doesn't support shallow clones, and so operations that involve
walking back through the commits like git_merge_base can fail
(depending on the exact circumstances).
This workaround simply switches to using git merge-base instead - the
same functionality, but from within git, which does support shallow clones.

Adds a test case to show it is fixed.

Fixes #555

Checklist:

  • Have you reviewed your own change?
  • Have you included test(s)?
  • Have you updated the changelog?

libgit2 doesn't support shallow clones, and so operations that involve
walking back through the commits like `git_merge_base` can fail
(depending on the exact circumstances).
This workaround simply switches to using `git merge-base` instead - the
same functionality, but from within git, which does support shallow clones.

Adds a test case to show it is fixed.
@olsen232 olsen232 merged commit 6178e0e into master Feb 17, 2022
@olsen232 olsen232 deleted the issue-555 branch February 17, 2022 01:37
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.

kart merge doesn't work with shallow clones
2 participants