Skip to content

Commit 8282f59

Browse files
Stephen P. Smithgitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 6fa9019 commit 8282f59

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

t/t7501-commit.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -682,4 +682,10 @@ test_expect_success '--dry-run with conflicts fixed from a merge' '
682682
git commit -m "conflicts fixed from merge."
683683
'
684684

685+
test_expect_failure '--dry-run --short' '
686+
>test-file &&
687+
git add test-file &&
688+
git commit --dry-run --short
689+
'
690+
685691
test_done

0 commit comments

Comments
 (0)