Re: [PATCH 3/3] fetch --all/--multiple: keep all the fetched branch information

Subsystems: the rest

2 messages, 2 authors, 2016-06-15 · open the first message on its own page

Re: [PATCH 3/3] fetch --all/--multiple: keep all the fetched branch information

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

Michael Lukashov [off-list ref] writes:
Patch 3 does not apply correctly:
It probably has a trivial confict, because there is an added test to the
second patch since I sent it out.  Please add this after applying [2/3].
diff --git a/t/t5521-pull-options.sh b/t/t5521-pull-options.sh
index c18d829..84059d8 100755
--- a/t/t5521-pull-options.sh
+++ b/t/t5521-pull-options.sh
@@ -51,4 +51,25 @@ test_expect_success 'git pull -q -v' '
 	test -s err)
 '
 
+test_expect_success 'git pull --force' '
+	mkdir clonedoldstyle &&
+	(cd clonedoldstyle && git init &&
+	cat >>.git/config <<-\EOF &&
+	[remote "one"]
+		url = ../parent
+		fetch = refs/heads/master:refs/heads/mirror
+	[remote "two"]
+		url = ../parent
+		fetch = refs/heads/master:refs/heads/origin
+	[branch "master"]
+		remote = two
+		merge = refs/heads/master
+	EOF
+	git pull two &&
+	test_commit A &&
+	git branch -f origin &&
+	git pull --all --force
+	)
+'
+
 test_done

Re: [PATCH 3/3] fetch --all/--multiple: keep all the fetched branch information

From: Michael Lukashov <hidden>
Date: 2016-06-15 22:48:21

Well, these patches solve the problem.
Thanks for your work!

On Wed, Feb 24, 2010 at 10:59 PM, Junio C Hamano [off-list ref] wrote:
quoted hunk
Michael Lukashov [off-list ref] writes:
quoted
Patch 3 does not apply correctly:
It probably has a trivial confict, because there is an added test to the
second patch since I sent it out.  Please add this after applying [2/3].
diff --git a/t/t5521-pull-options.sh b/t/t5521-pull-options.sh
index c18d829..84059d8 100755
--- a/t/t5521-pull-options.sh
+++ b/t/t5521-pull-options.sh
@@ -51,4 +51,25 @@ test_expect_success 'git pull -q -v' '
       test -s err)
 '

+test_expect_success 'git pull --force' '
+       mkdir clonedoldstyle &&
+       (cd clonedoldstyle && git init &&
+       cat >>.git/config <<-\EOF &&
+       [remote "one"]
+               url = ../parent
+               fetch = refs/heads/master:refs/heads/mirror
+       [remote "two"]
+               url = ../parent
+               fetch = refs/heads/master:refs/heads/origin
+       [branch "master"]
+               remote = two
+               merge = refs/heads/master
+       EOF
+       git pull two &&
+       test_commit A &&
+       git branch -f origin &&
+       git pull --all --force
+       )
+'
+
 test_done
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help