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

Re: pulling Already up-to-date linux-2.6 repo takes ~8 minutes?

From
Shawn O. Pearce <spearce@spearce.org>
Date
Oct 18, 2007, 04:50 UTC
Message-ID
<20071018045001.GA14735@spearce.org>
In-Reply-To
<1192678865.20353.14.camel@Homer.simpson.net>
Mike Galbraith <efault@gmx.de> wrote:
Show 7 quoted lines
> git_pull_linus scriptlet:
> 
> #!/bin/sh
> (cd linux-2.6; git pull git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git)
> (cd linux-2.6; git pull -t git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git)
> 
> root@Homer: time ./git_pull_linus
...
> remote: Total 48507 (delta 38878), reused 44654 (delta 35166)

Well, Linus and crew are pretty busy beavers. Its shocking how fast they can make a dam^H^H^Hoperating system better. :-)

...
> Already up-to-date.
> You are not currently on a branch; you must explicitly
> specify which branch you wish to merge:
>   git pull <remote> <branch>

The problem here is you aren't on a branch, you are on a detached HEAD. So we must have setup the wrong thing in .git/FETCH_HEAD and we didn't actually merge.

What version of git is this, exactly (`git version`)?

I'd suggest making your life a little bit easier. Consider creating a remote that points to Linus:

  $ git remote add linus git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git
  $ git checkout -b master   ; # or any other branch
  $ git config branch.master.remote linus
  $ git config branch.master.merge refs/heads/master
Now you can update from Linus with just:
  $ git pull

Provided you are on branch "master", or whatever other branches you setup those branch.*.remote and branch.*.merge configuration options for.

-- 
Shawn.
Previous: Mike GalbraithNext: Mike Galbraith
Message 2 of 9 in “pulling Already up-to-date linux-2.6 repo takes ~8 minutes?”
  1. Mike GalbraithOct 18, 2007
  2. Shawn O. PearceOct 18, 2007
  3. Mike GalbraithOct 18, 2007
  4. Mike GalbraithOct 18, 2007
  5. Mike GalbraithOct 18, 2007
  6. Shawn O. PearceOct 18, 2007
  7. Mike GalbraithOct 18, 2007
  8. Shawn O. PearceOct 18, 2007
  9. Mike GalbraithOct 18, 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.