]> git.ipfire.org Git - thirdparty/git.git/blobdiff - t/t6023-merge-file.sh
t6023: merge-file fails to output anything for a degenerate merge
[thirdparty/git.git] / t / t6023-merge-file.sh
index f674c48cab3e80d63b5a5831c667b8e08b542905..19556350b505fe67d8581f302ba970c02e961a21 100755 (executable)
@@ -54,6 +54,12 @@ deduxit me super semitas jusitiae,
 EOF
 printf "propter nomen suum." >> new4.txt
 
+test_expect_failure 'merge with no changes' '
+       cp orig.txt test.txt &&
+       git merge-file test.txt orig.txt orig.txt &&
+       test_cmp test.txt orig.txt
+'
+
 cp new1.txt test.txt
 test_expect_success "merge without conflict" \
        "git merge-file test.txt orig.txt new2.txt"