All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 4/4] Add test showing git-fetch groks gitfiles
@ 2011-10-04 20:09 Phil Hord
  0 siblings, 0 replies; only message in thread
From: Phil Hord @ 2011-10-04 20:09 UTC (permalink / raw)
  To: git, Erik Faye-Lund

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>

diff --git a/t/t5601-clone.sh b/t/t5601-clone.sh
index e810314..87ee016 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
-- 
1.7.7.503.g26392.dirty

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2011-10-04 20:09 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-10-04 20:09 [PATCH 4/4] Add test showing git-fetch groks gitfiles Phil Hord

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.