libgit2sharp
libgit2sharp copied to clipboard
Fix empty folder issue in Repositoy.Worktrees.Add
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.