X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=t%2Ft2008-checkout-subdir.sh;h=3e098ab31e1944abe8e5815c0f219947620b6618;hb=bb0d283989ec8853ffd72dfb26ff557ffa7781e4;hp=4a723dc0e564d3b9f8b38a4f85d1b2e917a6edda;hpb=dc31cd8fcc20d95a80da5ebe6feaab01539ebe4c;p=git.git diff --git a/t/t2008-checkout-subdir.sh b/t/t2008-checkout-subdir.sh index 4a723dc0e..3e098ab31 100755 --- a/t/t2008-checkout-subdir.sh +++ b/t/t2008-checkout-subdir.sh @@ -68,15 +68,15 @@ test_expect_success 'checkout with simple prefix' ' ' test_expect_success 'relative path outside tree should fail' \ - '! git checkout HEAD -- ../../Makefile' + 'test_must_fail git checkout HEAD -- ../../Makefile' test_expect_success 'incorrect relative path to file should fail (1)' \ - '! git checkout HEAD -- ../file0' + 'test_must_fail git checkout HEAD -- ../file0' test_expect_success 'incorrect relative path should fail (2)' \ - '( cd dir1 && ! git checkout HEAD -- ./file0 )' + '( cd dir1 && test_must_fail git checkout HEAD -- ./file0 )' test_expect_success 'incorrect relative path should fail (3)' \ - '( cd dir1 && ! git checkout HEAD -- ../../file0 )' + '( cd dir1 && test_must_fail git checkout HEAD -- ../../file0 )' test_done