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

Re: [PATCH] Merge non-first refs that match first refspec

From
Daniel Barkalow <barkalow@iabervon.org>
Date
Sep 28, 2007, 05:12 UTC
Message-ID
<Pine.LNX.4.64.0709280108060.5926@iabervon.org>
In-Reply-To
<20070928044824.GV3099@spearce.org>
On Fri, 28 Sep 2007, Shawn O. Pearce wrote:
Show 17 quoted lines
> Daniel Barkalow <barkalow@iabervon.org> wrote:
> > Beats me; Junio, what's your test case?
> 
> If I understood him correctly it is this:
> 
> 	mkdir foo; cd foo; git init
> 	git config remote.origin.url git://repo.or.cz/alt-git.git
> 	git config remote.origin.fetch refs/heads/master:refs/remotes/origin/master
> 	git config --add remote.origin.fetch refs/heads/maint:refs/remotes/origin/maint
> 	git pull
> 
> We should see "master" listed in .git/FETCH_HEAD as a "for-merge"
> and "maint" listed as a "not-for-merge"...
> 
> But if that remote.origin.fetch was a wildcard spec this shouldn't
> happen as the results are unpredictable.  But above the user
> explicitly put master first, so it should be defaulted to.

But after that sequence, the right thing does happen. So I'm guessing that he has some different sequence that triggers a bug.

	-Daniel
*This .sig left intentionally blank*
Previous: Shawn O. PearceNext: Shawn O. Pearce
Message 5 of 9 in “Merge non-first refs that match first refspec”
  1. Merge non-first refs that match first refspecDaniel Barkalow, Sep 28, 2007
  2. Shawn O. PearceSep 28, 2007
  3. Daniel BarkalowSep 28, 2007
  4. Shawn O. PearceSep 28, 2007
  5. Daniel BarkalowSep 28, 2007
  6. Shawn O. PearceSep 28, 2007
  7. Junio C HamanoSep 28, 2007
  8. Junio C HamanoSep 28, 2007
  9. Daniel BarkalowSep 28, 2007

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.