diff --git a/LibGit2Sharp/Core/GitWorktree.cs b/LibGit2Sharp/Core/GitWorktree.cs index 5e2aca023..2e17bc20d 100644 --- a/LibGit2Sharp/Core/GitWorktree.cs +++ b/LibGit2Sharp/Core/GitWorktree.cs @@ -41,7 +41,7 @@ internal class git_worktree_add_options public GitCheckoutOpts checkoutOpts = new GitCheckoutOpts { version = 1, - checkout_strategy = CheckoutStrategy.GIT_CHECKOUT_FORCE + checkout_strategy = CheckoutStrategy.GIT_CHECKOUT_SAFE }; }