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

Re: kernel.org git tree corrupt?

From
Steve French <smfrench@gmail.com>
Date
Mar 3, 2008, 03:43 UTC
Message-ID
<524f69650803021943i33ce6ddbo309f118cd0a77ac9@mail.gmail.com>
In-Reply-To
<alpine.LFD.1.00.0803021302070.17889@woody.linux-foundation.org>

On Sun, Mar 2, 2008 at 3:16 PM, Linus Torvalds <torvalds@linux-foundation.org> wrote:

Show 9 quoted lines
>
>  On Sun, 2 Mar 2008, Steve French wrote:
>  >
>  > In preparation for a merge request I do
>  >     cg-diff -m -r origin: | diffstat -p1
>  > (git diff -m -r origin: shows the same problem) and
>  >     cg-log -m -r origin:
>
>  First off, you really should lay off the cogito thing
no problem
Show 10 quoted lines
>   - look at your .git/config file to make sure that the remote branches are
>    sane. It should have something like this (and if it doesn't, add it):
>
>         [remote "origin"]
>                 url = git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6
>                 fetch = +refs/heads/*:refs/remotes/origin/*
>
>         [branch "master"]
>                 remote = origin
>                 merge = refs/heads/master
.git/config now includes
[core]
        repositoryformatversion = 0
        filemode = true
        bare = false
        logallrefupdates = true
[remote "origin"]
        url = /pub/scm/linux/kernel/git/torvalds/linux-2.6.git
        fetch = +refs/heads/*:refs/remotes/origin/*
[branch "master"]
        remote = origin
        merge = refs/heads/master
Show 5 quoted lines
>   - look at your "origin" branch, and make sure it's a *remote* branch, not
>    the old-style local one. Ie it should *not* show up when you do a
>    plain
>
>         git branch
now only shows "* master"
>    but it *should* show up (as both "origin/HEAD" and "origin/master")
>    when you do
>
>         git branch -a
Now "git branch -a" shows
* master
  origin/master
It is missing "origin/HEAD"
>   - now do "git log origin" an it should show something recent

git log origin and git log origin/master both return "ambiguous argument 'origin': unknown revision"

I must be misunderstanding the syntax/manpage of git-log but "git diff -m -r origin/master" now works fine and displays exactly what I expect so things have improved.

>  Now your setup should be ok again. I *suspect* that what has happened is
>  that you got a local "origin" branch - probably through cogito - that hid
>  the remote one.
This seems plausible and
-- 
Thanks,

Steve
Previous: Steve FrenchNext: Linus Torvalds
Message 5 of 7 in “kernel.org git tree corrupt?”
  1. Steve FrenchMar 2, 2008
  2. Linus TorvaldsMar 2, 2008
  3. Martin LanghoffMar 2, 2008
  4. Steve FrenchMar 2, 2008
  5. Steve FrenchMar 3, 2008
  6. Linus TorvaldsMar 3, 2008
  7. Steve FrenchMar 4, 2008

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.