X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=t%2Ft4038-diff-combined.sh;h=40277c77aad5f2d9533e6822da3380bb49621e59;hb=48c250a121a425a1860226b6a7061aecfbab5246;hp=2cf7e01ac2c42216dc935d2d2d9dd23b7ae62c4f;hpb=b7380fa7a9adb52860eef7e8885fb8bc179beae1;p=git.git diff --git a/t/t4038-diff-combined.sh b/t/t4038-diff-combined.sh index 2cf7e01ac..40277c77a 100755 --- a/t/t4038-diff-combined.sh +++ b/t/t4038-diff-combined.sh @@ -76,9 +76,17 @@ test_expect_success 'check combined output (1)' ' verify_helper sidewithone ' -test_expect_failure 'check combined output (2)' ' +test_expect_success 'check combined output (2)' ' git show sidesansone -- >sidesansone && verify_helper sidesansone ' +test_expect_success 'diagnose truncated file' ' + >file && + git add file && + git commit --amend -C HEAD && + git show >out && + grep "diff --cc file" out +' + test_done