Skip to content

Commit 229a95a

Browse files
committed
t0027: do not use an empty string as a pathspec element
In an upcoming update, we will finally make an empty string illegal as an element in a pathspec; it traditionally meant the same as ".", i.e. include everything, so update this test that passes "" to pass a dot instead. At this point in the test sequence, there is no modified path that need to be further added before committing; the working tree is empty except for .gitattributes which was just added to the index. So we could instead pass no pathspec, but this is a conversion more faithful to the original. Signed-off-by: Junio C Hamano <[email protected]>
1 parent d426430 commit 229a95a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

t/t0027-auto-crlf.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ test_expect_success 'setup master' '
322322
echo >.gitattributes &&
323323
git checkout -b master &&
324324
git add .gitattributes &&
325-
git commit -m "add .gitattributes" "" &&
325+
git commit -m "add .gitattributes" . &&
326326
printf "\$Id: 0000000000000000000000000000000000000000 \$\nLINEONE\nLINETWO\nLINETHREE" >LF &&
327327
printf "\$Id: 0000000000000000000000000000000000000000 \$\r\nLINEONE\r\nLINETWO\r\nLINETHREE" >CRLF &&
328328
printf "\$Id: 0000000000000000000000000000000000000000 \$\nLINEONE\r\nLINETWO\nLINETHREE" >CRLF_mix_LF &&

0 commit comments

Comments
 (0)