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 empty folder issue in Repositoy.Worktrees.Add #2099

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

Conversation

enriqueraso
Copy link

This PR is fixing an issue when creating a worktree. It creates an empty folder with .git file only. 0.26.2 was the Latest version that creating a worktree works well and it was using the GIT_CHECKOUT_FORCE as checkout strategy.

  • Set GIT_CHECKOUT_FORCE as checkout strategy when creating a worktree.
  • Update current and add unit tests in WorktreeFixture.

@enriqueraso enriqueraso marked this pull request as draft June 4, 2024 09:13
@enriqueraso enriqueraso marked this pull request as ready for review June 4, 2024 09:13
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.

1 participant