git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

From
Junio C Hamano <gitster@pobox.com>
Date
Feb 24, 2010, 19:59 UTC
Message-ID
<7vy6iil81k.fsf@alter.siamese.dyndns.org>
In-Reply-To
<63cde7731002241154o40ad7e6eh26f20017f7854fc3@mail.gmail.com>
Michael Lukashov <michael.lukashov@gmail.com> 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
Previous: Michael LukashovNext: Michael Lukashov
Message 6 of 7 in “t5521: fix and modernize”
  1. 1/2 t5521: fix and modernizeJunio C Hamano, Feb 24, 2010
  2. 2/2 builtin-fetch --all/--multi: propagate options correctlyJunio C Hamano, Feb 24, 2010
  3. 3/3 fetch --all/--multiple: keep all the fetched branch informationJunio C Hamano, Feb 24, 2010
  4. Teemu LikonenFeb 24, 2010
  5. Michael LukashovFeb 24, 2010
  6. Junio C HamanoFeb 24, 2010
  7. Michael LukashovFeb 24, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.