X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=t%2Ft5601-clone.sh;h=151ea531bdfeb5a012e57407749beb4f26de6d2a;hb=018443526875456d335fef2dfbc78bc4de2d340d;hp=5a068b21e4aeac79863df657d6388ec4c2732d55;hpb=8de43386505b503e25788f75f89802495828e6c0;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