]> git.ipfire.org Git - thirdparty/git.git/commitdiff
t0027: do not use an empty string as a pathspec element
authorJunio C Hamano <gitster@pobox.com>
Fri, 23 Jun 2017 18:04:14 +0000 (11:04 -0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 23 Jun 2017 20:10:20 +0000 (13:10 -0700)
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 <gitster@pobox.com>
t/t0027-auto-crlf.sh

index 93725895a4050dca835fd61ef5eee75aa1174ed5..e41c9b3bb26ffdfa66a57fa2d01701803182c890 100755 (executable)
@@ -322,7 +322,7 @@ test_expect_success 'setup master' '
        echo >.gitattributes &&
        git checkout -b master &&
        git add .gitattributes &&
-       git commit -m "add .gitattributes" "" &&
+       git commit -m "add .gitattributes" . &&
        printf "\$Id: 0000000000000000000000000000000000000000 \$\nLINEONE\nLINETWO\nLINETHREE"     >LF &&
        printf "\$Id: 0000000000000000000000000000000000000000 \$\r\nLINEONE\r\nLINETWO\r\nLINETHREE" >CRLF &&
        printf "\$Id: 0000000000000000000000000000000000000000 \$\nLINEONE\r\nLINETWO\nLINETHREE"   >CRLF_mix_LF &&