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

Re: RFC: git pull <remote> making an octopus?

From
Junio C Hamano <junkio@cox.net>
Date
Aug 14, 2006, 07:00 UTC
Message-ID
<7vac67g5t5.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<20060814064336.GE21963@mellanox.co.il>
"Michael S. Tsirkin" <mst@mellanox.co.il> writes:
> $ git pull origin
>
> where origin is a file in .git/remotes/origin with multiple Pull: lines,
> then I seem to get an octopus merge.
You shouldn't.
I have four Pull: lines like these for .git/remotes/ko
        URL: kernel.org:/pub/scm/git/git.git/
        Pull: master:refs/tags/ko-master
        Pull: next:refs/tags/ko-next
        Pull: +pu:refs/tags/ko-pu
        Pull: maint:refs/tags/ko-maint
        Push: heads/master
        Push: heads/next
        Push: +heads/pu
        Push: heads/maint
and "git pull ko" leaves this in .git/FETCH_HEAD:
        460c...		branch 'master' of .kernel.org:/pub/scm/git/git
        767f...	not-for-merge	branch 'next' of .kernel.org:/pub/scm/git/git
        9bd4...	not-for-merge	branch 'pu' of .kernel.org:/pub/scm/git/git
        9a1a...	not-for-merge	branch 'maint' of .kernel.org:/pub/scm/git/git

The latter three are not merged into the current branch with the above pull command.

Are you by any chance running a version of git that has some unofficial patches that affect the generation of not-for-merge markers?

Previous: Michael S. TsirkinNext: Michael S. Tsirkin
Message 2 of 10 in “RFC: git pull <remote> making an octopus?”
  1. Michael S. TsirkinAug 14, 2006
  2. Junio C HamanoAug 14, 2006
  3. Michael S. TsirkinAug 14, 2006
  4. Michael S. TsirkinAug 14, 2006
  5. Junio C HamanoAug 14, 2006
  6. Alex RiesenAug 15, 2006
  7. Junio C HamanoAug 15, 2006
  8. Junio C HamanoAug 17, 2006
  9. Alex RiesenAug 17, 2006
  10. Michael S. TsirkinAug 17, 2006

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.