X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=t%2Ft5601-clone.sh;h=151ea531bdfeb5a012e57407749beb4f26de6d2a;hb=124b70a2adad2b2efdf50150a6840f1327d2f2cd;hp=5a068b21e4aeac79863df657d6388ec4c2732d55;hpb=5a6d82d0865a616bf22b9bbc3baea1ad4bd4b21b;p=git.git diff --git a/t/t5601-clone.sh b/t/t5601-clone.sh index 5a068b21e..151ea531b 100755 --- a/t/t5601-clone.sh +++ b/t/t5601-clone.sh @@ -194,11 +194,14 @@ test_expect_success 'do not respect url-encoding of non-url path' ' test_expect_success 'clone separate gitdir' ' rm -rf dst && git clone --separate-git-dir realgitdir src dst && - echo "gitdir: `pwd`/realgitdir" >expected && - test_cmp expected dst/.git && test -d realgitdir/refs ' +test_expect_success 'clone separate gitdir: output' ' + echo "gitdir: `pwd`/realgitdir" >expected && + test_cmp expected dst/.git +' + test_expect_success 'clone separate gitdir where target already exists' ' rm -rf dst && test_must_fail git clone --separate-git-dir realgitdir src dst