From: "Steve French" <smfrench@gmail.com>
To: git@vger.kernel.org, lkml <linux-kernel@vger.kernel.org>
Cc: "Linus Torvalds" <torvalds@linux-foundation.org>
Subject: Re: kernel.org git tree corrupt?
Date: Sun, 2 Mar 2008 21:43:39 -0600 [thread overview]
Message-ID: <524f69650803021943i33ce6ddbo309f118cd0a77ac9@mail.gmail.com> (raw)
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:
>
> 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
> - 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
> - 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
next prev parent reply other threads:[~2008-03-03 3:44 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-02 15:49 kernel.org git tree corrupt? Steve French
2008-03-02 21:16 ` Linus Torvalds
2008-03-02 21:40 ` Martin Langhoff
2008-03-02 22:02 ` Steve French
2008-03-03 3:43 ` Steve French [this message]
2008-03-03 16:21 ` Linus Torvalds
2008-03-04 4:42 ` Steve French
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=524f69650803021943i33ce6ddbo309f118cd0a77ac9@mail.gmail.com \
--to=smfrench@gmail.com \
--cc=git@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@linux-foundation.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).