Skip to content

Commit

Permalink
t7609-merge-co-error-msgs: test non-fast forward case too.
Browse files Browse the repository at this point in the history
Signed-off-by: Matthieu Moy <Matthieu.Moy@imag.fr>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
moy authored and gitster committed Sep 3, 2010
1 parent 5e65ee3 commit c5978a5
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions t/t7609-merge-co-error-msgs.sh
Expand Up @@ -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
Expand Down

0 comments on commit c5978a5

Please sign in to comment.