Removed unnecessary GIT_CHECKOUT_SKIP_UNMERGED for GIT_RESET_HARD

This commit is contained in:
Pierre-Olivier Latour 2015-03-08 14:10:02 -07:00
parent b5ab878f4c
commit 2461e0d20f

View File

@ -149,7 +149,7 @@ int git_reset(
if (reset_type == GIT_RESET_HARD) {
/* overwrite working directory with HEAD */
opts.checkout_strategy = GIT_CHECKOUT_FORCE | GIT_CHECKOUT_SKIP_UNMERGED;
opts.checkout_strategy = GIT_CHECKOUT_FORCE;
if ((error = git_checkout_tree(repo, (git_object *)tree, &opts)) < 0)
goto cleanup;