summaryrefslogtreecommitdiff
path: root/t/t6044-merge-unrelated-index-changes.sh
diff options
context:
space:
mode:
authorElijah Newren <newren@gmail.com>2018-07-01 01:24:59 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-07-11 16:38:36 (GMT)
commit92702392cefdbd66ca593fa909540230ef9e005e (patch)
tree2903cd89eb8e7a0287c0f0545eaeef4aa84cc12f /t/t6044-merge-unrelated-index-changes.sh
parentcf69f2af08f8dc092d57b987f26719fe0d43a40d (diff)
downloadgit-92702392cefdbd66ca593fa909540230ef9e005e.zip
git-92702392cefdbd66ca593fa909540230ef9e005e.tar.gz
git-92702392cefdbd66ca593fa909540230ef9e005e.tar.bz2
merge-recursive: make sure when we say we abort that we actually abort
In commit 65170c07d4 ("merge-recursive: avoid incorporating uncommitted changes in a merge", 2017-12-21), it was noted that there was a special case when merge-recursive didn't rely on unpack_trees() to enforce the index == HEAD requirement, and thus that it needed to do that enforcement itself. Unfortunately, it returned the wrong exit status, signalling that the merge completed but had conflicts, rather than that it was aborted. Fix the return code, and while we're at it, change the error message to match what unpack_trees() would have printed. Signed-off-by: Elijah Newren <newren@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t6044-merge-unrelated-index-changes.sh')
-rwxr-xr-xt/t6044-merge-unrelated-index-changes.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/t6044-merge-unrelated-index-changes.sh b/t/t6044-merge-unrelated-index-changes.sh
index 97f7460..d55f164 100755
--- a/t/t6044-merge-unrelated-index-changes.sh
+++ b/t/t6044-merge-unrelated-index-changes.sh
@@ -116,7 +116,7 @@ test_expect_success 'recursive' '
test_path_is_missing .git/MERGE_HEAD
'
-test_expect_failure 'recursive, when merge branch matches merge base' '
+test_expect_success 'recursive, when merge branch matches merge base' '
git reset --hard &&
git checkout B^0 &&