Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
pathspec: warn on empty strings as pathspec
[gitweb.git]
/
t
/
t3700-add.sh
diff --git
a/t/t3700-add.sh
b/t/t3700-add.sh
index f14a6653565cede5ad9d43e47e71eaf98f58839f..05379d0a4a5c5312896f8cc13e286ebb37c517e7 100755
(executable)
--- a/
t/t3700-add.sh
+++ b/
t/t3700-add.sh
@@
-332,4
+332,9
@@
test_expect_success 'git add --dry-run --ignore-missing of non-existing file out
test_i18ncmp expect.err actual.err
'
+test_expect_success 'git add empty string should invoke warning' '
+ git add "" 2>output &&
+ test_i18ngrep "warning: empty strings" output
+'
+
test_done