Thread (2 messages) flat view 2 messages, 2 authors, 2017-06-23

Re: [PATCH] pathspec: die on empty strings as pathspec

From: Junio C Hamano <hidden>
Date: 2017-06-10 05:54:45

Emily Xie [off-list ref] writes:
quoted hunk
diff --git a/t/t3700-add.sh b/t/t3700-add.sh
index f3a4b4a..40a0d2b 100755
--- a/t/t3700-add.sh
+++ b/t/t3700-add.sh
@@ -331,9 +331,8 @@ 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_expect_success 'git add empty string should fail' '
+	test_must_fail git add ""
 '
Doesn't this affect the tests that follow this step?  We used to
warn but went ahead and added all of them anyway, but now we fail
without adding anything, which means that the state of the index
before and after this patch would be different.
 test_expect_success 'git add --chmod=[+-]x stages correctly' '
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help