|
|
|
@ -46,11 +46,8 @@ test_expect_success 'setup' '
@@ -46,11 +46,8 @@ test_expect_success 'setup' '
|
|
|
|
|
pre_merge_head="$(git rev-parse HEAD)" |
|
|
|
|
|
|
|
|
|
test_expect_success 'fails without MERGE_HEAD (unstarted merge)' ' |
|
|
|
|
test_must_fail git merge --abort 2>output |
|
|
|
|
' |
|
|
|
|
|
|
|
|
|
test_expect_success C_LOCALE_OUTPUT 'fails without MERGE_HEAD (unstarted merge): fatal output' ' |
|
|
|
|
grep -q MERGE_HEAD output |
|
|
|
|
test_must_fail git merge --abort 2>output && |
|
|
|
|
test_i18ngrep MERGE_HEAD output |
|
|
|
|
' |
|
|
|
|
|
|
|
|
|
test_expect_success 'fails without MERGE_HEAD (unstarted merge): .git/MERGE_HEAD sanity' ' |
|
|
|
@ -63,11 +60,8 @@ test_expect_success 'fails without MERGE_HEAD (completed merge)' '
@@ -63,11 +60,8 @@ test_expect_success 'fails without MERGE_HEAD (completed merge)' '
|
|
|
|
|
test ! -f .git/MERGE_HEAD && |
|
|
|
|
# Merge successfully completed |
|
|
|
|
post_merge_head="$(git rev-parse HEAD)" && |
|
|
|
|
test_must_fail git merge --abort 2>output |
|
|
|
|
' |
|
|
|
|
|
|
|
|
|
test_expect_success C_LOCALE_OUTPUT 'fails without MERGE_HEAD (completed merge): output' ' |
|
|
|
|
grep -q MERGE_HEAD output |
|
|
|
|
test_must_fail git merge --abort 2>output && |
|
|
|
|
test_i18ngrep MERGE_HEAD output |
|
|
|
|
' |
|
|
|
|
|
|
|
|
|
test_expect_success 'fails without MERGE_HEAD (completed merge): .git/MERGE_HEAD sanity' ' |
|
|
|
|