libgit2sharp icon indicating copy to clipboard operation
libgit2sharp copied to clipboard

Fix empty folder issue in Repositoy.Worktrees.Add

Open enriqueraso opened this issue 8 months ago • 0 comments

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 avatar Jun 04 '24 09:06 enriqueraso