From: Stephen P. Smith Date: Thu, 6 Sep 2018 00:53:28 +0000 (-0700) Subject: t7501: add test of "commit --dry-run --short" X-Git-Tag: v2.20.0-rc0~163^2~2 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/8282f59f90b8d864f245dd04a79106b9e620e137?hp=--cc t7501: add test of "commit --dry-run --short" Add test for commit with --dry-run --short for a new file of zero length. The test demonstrates that the setting of the committable flag is broken. Signed-off-by: Stephen P. Smith Signed-off-by: Junio C Hamano --- 8282f59f90b8d864f245dd04a79106b9e620e137 diff --git a/t/t7501-commit.sh b/t/t7501-commit.sh index 4cae92804d..cf2a4c5392 100755 --- a/t/t7501-commit.sh +++ b/t/t7501-commit.sh @@ -682,4 +682,10 @@ test_expect_success '--dry-run with conflicts fixed from a merge' ' git commit -m "conflicts fixed from merge." ' +test_expect_failure '--dry-run --short' ' + >test-file && + git add test-file && + git commit --dry-run --short +' + test_done