We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5e65ee3 commit c5978a5Copy full SHA for c5978a5
t/t7609-merge-co-error-msgs.sh
@@ -34,9 +34,17 @@ error: The following untracked working tree files would be overwritten by merge:
34
Please move or remove them before you can merge.
35
EOF
36
37
-test_expect_success 'untracked files overwritten by merge' '
+test_expect_success 'untracked files overwritten by merge (fast and non-fast forward)' '
38
test_must_fail git merge branch 2>out &&
39
- test_cmp out expect
+ test_cmp out expect &&
40
+ git commit --allow-empty -m empty &&
41
+ (
42
+ GIT_MERGE_VERBOSITY=0 &&
43
+ export GIT_MERGE_VERBOSITY &&
44
+ test_must_fail git merge branch 2>out2
45
+ ) &&
46
+ test_cmp out2 expect &&
47
+ git reset --hard HEAD^
48
'
49
50
cat >expect <<\EOF
0 commit comments