diff-index.c: "git diff" has no need to read blob from the standard input
[gitweb.git] / t / t7501-commit.sh
index 3ad04363b5920497617f806a18a3a5a0083ac1b9..e6cf6ee9e76ec4f2f56dd2c66460756dcc02558d 100755 (executable)
@@ -458,4 +458,16 @@ test_expect_success 'amend can copy notes' '
 
 '
 
+test_expect_success 'commit a file whose name is a dash' '
+       git reset --hard &&
+       for i in 1 2 3 4 5
+       do
+               echo $i
+       done >./- &&
+       git add ./- &&
+       test_tick &&
+       git commit -m "add dash" >output </dev/null &&
+       test_i18ngrep " changed, 5 insertions" output
+'
+
 test_done