From: Matthieu Moy Date: Fri, 3 Sep 2010 15:25:33 +0000 (+0200) Subject: t7609-merge-co-error-msgs: test non-fast forward case too. X-Git-Tag: v1.7.3-rc0~5^2 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=c5978a507ca20b12008724f78237784193fb9489;p=git.git t7609-merge-co-error-msgs: test non-fast forward case too. Signed-off-by: Matthieu Moy Signed-off-by: Junio C Hamano --- diff --git a/t/t7609-merge-co-error-msgs.sh b/t/t7609-merge-co-error-msgs.sh index 1a109b41d..114d2bd78 100755 --- a/t/t7609-merge-co-error-msgs.sh +++ b/t/t7609-merge-co-error-msgs.sh @@ -34,9 +34,17 @@ error: The following untracked working tree files would be overwritten by merge: Please move or remove them before you can merge. EOF -test_expect_success 'untracked files overwritten by merge' ' +test_expect_success 'untracked files overwritten by merge (fast and non-fast forward)' ' test_must_fail git merge branch 2>out && - test_cmp out expect + test_cmp out expect && + git commit --allow-empty -m empty && + ( + GIT_MERGE_VERBOSITY=0 && + export GIT_MERGE_VERBOSITY && + test_must_fail git merge branch 2>out2 + ) && + test_cmp out2 expect && + git reset --hard HEAD^ ' cat >expect <<\EOF