summaryrefslogtreecommitdiff
path: root/src/stash.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/stash.c')
-rw-r--r--src/stash.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/stash.c b/src/stash.c
index d53c22c4d..e3e025771 100644
--- a/src/stash.c
+++ b/src/stash.c
@@ -738,10 +738,8 @@ int git_stash_apply(
&unstashed_index, repo, index_parent_tree, repo_index, index_tree)) < 0)
goto cleanup;
-
- /* TODO: GIT_EMERGECONFLICT */
if (git_index_has_conflicts(unstashed_index)) {
- error = GIT_EUNMERGED;
+ error = GIT_EMERGECONFLICT;
goto cleanup;
}
}