Thread (2 messages) flat view 2 messages, 2 authors, 2016-06-15

Re: [PATCHv6] clone --single: limit the fetch refspec to fetched branch

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:54:48

Possibly related (same subject, not in this thread)

Ralf Thielow [off-list ref] writes:
+ ...
+	# explicit --single with tag
+	git clone --single-branch --branch two . dir_tag &&
+
+	# advance both "master" and "side" branches
+	git checkout side &&
+	echo five >file &&
+	git commit -a -m five &&
+	git checkout master &&
+	echo six >file &&
+	git commit -a -m six
Don't we also want to cover your "delivery" tag scenario by updating
the tag "two" before letting the clones fetch in the following test?
+ ...
+test_expect_success '--single-branch with explicit --branch tag' '
+	(
+		cd dir_tag && git fetch &&
+		git for-each-ref refs/tags >../actual
+	) &&
+	git for-each-ref refs/tags >expect &&
+	test_cmp expect actual
+'
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help