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

Re: [bug] git-clone over ssh fails when repository has local commits

From
SGseventh guardian <seventhguardian@gmail.com>
Date
Apr 6, 2008, 18:06 UTC
Message-ID
<1caff7430804061106m49a60bc0wbbd9001394e83589@mail.gmail.com>
In-Reply-To
<20080406175136.GB32399@coredump.intra.peff.net>
On Sun, Apr 6, 2008 at 6:51 PM, Jeff King <peff@peff.net> wrote:
Show 5 quoted lines
> On Sun, Apr 06, 2008 at 06:11:12PM +0100, seventh guardian wrote:
>
>  Hmm. This _should_ just work, but something funny is going on. For some
>  reason the "local master" is telling us that his HEAD points to
>  f7a51afd, but we don't actually get that object.

This object is the correct HEAD, but it is a local commit (I rebase all local changes so that they stay "on top" of the original code).

Show 5 quoted lines
>  But I'm not quite sure
>  how we get into that situation; my guess is that there is something
>  confusing going on at the remote master, since the http fetching code is
>  not as strict and might fail to notice a missing object there. Is it
>  possible for us to see the remote master so we can take a look?

Sure, I just thought it would confuse more than it would help. I was obviously wrong, as I'm actually using git:// instead of http://.... sorry... ;)

 I'm experiencing this with both these repo's, as I have committed
some local changes to them:

git://anongit.freedesktop.org/git/nouveau/mesa git://anongit.freedesktop.org/git/nouveau/xf86-video-nouveau/

On the other hand, I don't have this issue with this repo, which doesn't have any local commit:

git://anongit.freedesktop.org/git/mesa/drm/

Now that I look at the addresses, the "nouveau" part is common to the problematic repo's. I'll make a local change on the last repo and see if it also exhibits the problem. I'll report back ASAP.

Cheers,
  Renato
Previous: Jeff KingNext: seventh guardian
Message 7 of 11 in “[bug] git-clone over ssh fails when repository has local commits”
  1. seventh guardianApr 6, 2008
  2. Jeff KingApr 6, 2008
  3. seventh guardianApr 6, 2008
  4. Jeff KingApr 6, 2008
  5. seventh guardianApr 6, 2008
  6. Jeff KingApr 6, 2008
  7. seventh guardianApr 6, 2008
  8. seventh guardianApr 6, 2008
  9. Jakub NarebskiApr 6, 2008
  10. Jeff KingApr 6, 2008
  11. seventh guardianApr 6, 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.