X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=t%2Ft3020-ls-files-error-unmatch.sh;h=a7d8187169a36f708bd7dc39d97604dd9cc21565;hb=97b03c353856602a3c30b01baae1efb8dfe4243e;hp=f4066cbc090a8fd0f6a528eed65d16d705c1bb18;hpb=268c015495038be387ad3c5d674851889c497716;p=git.git diff --git a/t/t3020-ls-files-error-unmatch.sh b/t/t3020-ls-files-error-unmatch.sh index f4066cbc0..a7d818716 100755 --- a/t/t3020-ls-files-error-unmatch.sh +++ b/t/t3020-ls-files-error-unmatch.sh @@ -11,9 +11,11 @@ line. ' . ./test-lib.sh -touch foo bar -git update-index --add foo bar -git commit -m "add foo bar" +test_expect_success 'setup' ' + touch foo bar && + git update-index --add foo bar && + git commit -m "add foo bar" +' test_expect_success \ 'git ls-files --error-unmatch should fail with unmatched path.' \