Merge branch 'aw/rebase-i-stop-on-failure-to-amend' into maint
[gitweb.git] / t / t5601-clone.sh
index d87214cfbf95d44baa9683b6b05a78743ee78bfb..87ee01662c2fcfa58d8f9896fd43881e2e7ed7d6 100755 (executable)
@@ -202,6 +202,24 @@ test_expect_success 'clone separate gitdir: output' '
        test_cmp expected dst/.git
 '
 
+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