From: Stephen P. Smith Date: Thu, 06 Sep 2018 00:53:28 GMT Subject: [PATCH v3 3/4] t7501: add test of "commit --dry-run --short" Message-ID: <20180906005329.11277-4-ischis2@cox.net> In-Reply-To: <20180906005329.11277-1-ischis2@cox.net> 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 --- t/t7501-commit.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/t/t7501-commit.sh b/t/t7501-commit.sh index 4cae92804..cf2a4c539 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 -- 2.18.0