Commit 58451759 by punkymaniac Committed by Edward Thomson

Change default checkout strategy from FORCE to SAFE

Since we are able to give our own git checkout options,
the default git checkout strategy will be the same as
initialized in a new git_checkout_options struct.
parent ffead012
......@@ -407,8 +407,6 @@ int git_worktree_add(git_worktree **out, git_repository *repo,
/* Checkout worktree's HEAD */
if (opts != NULL)
memcpy(&coopts, &wtopts.checkout_opts, sizeof(coopts));
else
coopts.checkout_strategy = GIT_CHECKOUT_FORCE;
if ((err = git_checkout_head(wt, &coopts)) < 0)
goto out;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment