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

Re: 1.5.0.rc1.gb60d: fetch in another branch works strangely

From
Shawn O. Pearce <spearce@spearce.org>
Date
Jan 13, 2007, 21:14 UTC
Message-ID
<20070113211428.GA17749@spearce.org>
In-Reply-To
<200701132106.l0DL6BPH008314@laptop13.inf.utfsm.cl>
"Horst H. von Brand" <vonbrand@inf.utfsm.cl> wrote:
> I created a new branch in the kernel to carry a not yet official patch, to
> keep this up to date I do:
> 
>    $ git fetch git://git2.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git

That's only writing into FETCH_HEAD whatever branch is marked as HEAD in Linus' repository. No local refs are being updated.

>    $ git pull . origin
So this won't merge in the changes fetched above.

Why not setup that URL as a remote (git remote add linus ....) Then you can do:

  $ git fetch linus
  $ git merge linus/master
or 
  $ git fetch linus
  $ git pull . linus/master
or 
  $ git pull linus master
-- 
Shawn.
Previous: Horst H. von BrandNext: Junio C Hamano
Message 2 of 3 in “1.5.0.rc1.gb60d: fetch in another branch works strangely”
  1. Horst H. von BrandJan 13, 2007
  2. Shawn O. PearceJan 13, 2007
  3. Junio C HamanoJan 13, 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.