Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
diff --check: do not discard error status upon seeing a good line
[gitweb.git]
/
t
/
t4017-diff-retval.sh
diff --git
a/t/t4017-diff-retval.sh
b/t/t4017-diff-retval.sh
index dc0b7126cc996594b415058d83014a2c7d732895..0d0fb87f5732e3ecbca8a195843070539353701e 100755
(executable)
--- a/
t/t4017-diff-retval.sh
+++ b/
t/t4017-diff-retval.sh
@@
-105,4
+105,12
@@
test_expect_success '--check with --no-pager returns 2 for dirty difference' '
'
+
+test_expect_success 'check should test not just the last line' '
+ echo "" >>a &&
+ git --no-pager diff --check
+ test $? = 2
+
+'
+
test_done