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.