X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=t%2Ft5601-clone.sh;h=87ee01662c2fcfa58d8f9896fd43881e2e7ed7d6;hb=50c94032844bb184cdeff7779be3b6a23e04d312;hp=e8103144bb026afb12f5b058b9ec399b70abebbd;hpb=87d99c64dfa8880592104245896557aa530d4fd9;p=git.git diff --git a/t/t5601-clone.sh b/t/t5601-clone.sh index e8103144b..87ee01662 100755 --- a/t/t5601-clone.sh +++ b/t/t5601-clone.sh @@ -206,6 +206,20 @@ test_expect_success 'clone from .git file' ' git clone dst/.git dst2 ' +test_expect_success 'fetch from .git gitfile' ' + ( + cd dst2 && + git fetch ../dst/.git + ) +' + +test_expect_success 'fetch from gitfile parent' ' + ( + cd dst2 && + git fetch ../dst + ) +' + test_expect_success 'clone separate gitdir where target already exists' ' rm -rf dst && test_must_fail git clone --separate-git-dir realgitdir src dst