diff options
| author | Stephen P. Smith <ischis2@cox.net> | 2018-09-05 17:53:28 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2018-09-07 14:38:26 -0700 |
| commit | 8282f59f90b8d864f245dd04a79106b9e620e137 (patch) | |
| tree | 5fe75cf06579540a2af0cf98d6e34ec8e362e159 /t/t7501-commit.sh | |
| parent | 6fa9019494f018c560a3979be604f27d12e95659 (diff) | |
| download | git-8282f59f90b8d864f245dd04a79106b9e620e137.tar.gz | |
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 <ischis2@cox.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t7501-commit.sh')
| -rwxr-xr-x | t/t7501-commit.sh | 6 |
1 files changed, 6 insertions, 0 deletions
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 |
