Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
t7501: add test of "commit --dry-run --short"
author
Stephen P. Smith
<ischis2@cox.net>
Thu, 6 Sep 2018 00:53:28 +0000
(17:53 -0700)
committer
Junio C Hamano
<gitster@pobox.com>
Fri, 7 Sep 2018 21:38:26 +0000
(14:38 -0700)
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>
t/t7501-commit.sh
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
6fa9019
)
diff --git
a/t/t7501-commit.sh
b/t/t7501-commit.sh
index 4cae92804d11f75f24bdd6f6517a88c834e7cfc7..cf2a4c5392f985b707b3d0741f806cfb7d1c7665 100755
(executable)
--- 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