summaryrefslogtreecommitdiff
path: root/src/reset.c
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@microsoft.com>2013-07-17 09:49:56 -0500
committerEdward Thomson <ethomson@microsoft.com>2013-10-16 16:20:06 -0400
commit629b661caab321a3aa5ffd7274ea4ed441d2805e (patch)
tree52e5236b88ec970a513caf1a35844e230ccfa91e /src/reset.c
parent3acf44d6cb5e56fea379504c07ae7ac8dd0e586d (diff)
downloadlibgit2-629b661caab321a3aa5ffd7274ea4ed441d2805e.tar.gz
checkout (from index) can write conflicts
Diffstat (limited to 'src/reset.c')
-rw-r--r--src/reset.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/reset.c b/src/reset.c
index cea212a93..87dc45a3f 100644
--- a/src/reset.c
+++ b/src/reset.c
@@ -135,7 +135,7 @@ int git_reset(
if (reset_type == GIT_RESET_HARD) {
/* overwrite working directory with HEAD */
- opts.checkout_strategy = GIT_CHECKOUT_FORCE;
+ opts.checkout_strategy = GIT_CHECKOUT_FORCE | GIT_CHECKOUT_SKIP_UNMERGED;
if ((error = git_checkout_tree(repo, (git_object *)tree, &opts)) < 0)
goto cleanup;