summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 7ab8777)
raw | patch | inline | side by side (parent: 7ab8777)
author | Phil Hord <phil.hord@gmail.com> | |
Tue, 4 Oct 2011 20:09:23 +0000 (16:09 -0400) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Tue, 4 Oct 2011 20:38:12 +0000 (13:38 -0700) |
Add a test for two subtly different cases: 'git fetch path/.git'
and 'git fetch path' to confirm that transport recognizes both
paths as git repositories when using the gitfile mechanism.
Signed-off-by: Phil Hord <hordp@cisco.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
and 'git fetch path' to confirm that transport recognizes both
paths as git repositories when using the gitfile mechanism.
Signed-off-by: Phil Hord <hordp@cisco.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t5601-clone.sh | patch | blob | history |
diff --git a/t/t5601-clone.sh b/t/t5601-clone.sh
index e8103144bb026afb12f5b058b9ec399b70abebbd..87ee01662c2fcfa58d8f9896fd43881e2e7ed7d6 100755 (executable)
--- a/t/t5601-clone.sh
+++ b/t/t5601-clone.sh
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