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

Re: git-clone: Unobvious error messages when update-server-info has not been run

From
Sebastian Harl <sh@tokkee.org>
Date
Dec 17, 2007, 15:47 UTC
Message-ID
<20071217154742.GI14889@albany.tokkee.org>
In-Reply-To
<20071217124359.GA20800@coredump.intra.peff.net>
Hi Jeff,
On Mon, Dec 17, 2007 at 07:43:59AM -0500, Jeff King wrote:
Show 18 quoted lines
> On Mon, Dec 17, 2007 at 11:55:41AM +0100, Sebastian Harl wrote:
> > I was just trying to clone a repository using http but missed to run
> > git-update-server-info on the server side. git-clone aborted with the
> > following error messages:
> > 
> >   % git clone http://some/repo.git
> >   Initialized empty Git repository in /path/repo/.git/
> >   cat: /path/repo/.git/refs/remotes/origin/master: No such file or directory
> >   cd: 482: can't cd to /path/repo/.git/refs/remotes/origin
> >   fatal: : not a valid SHA1
> >   fatal: Not a valid object name HEAD
> > 
> > It's kind of hard to guess where the error comes from in this case (I blamed
> > Git at first). Is there some way to improve the error message in a case like
> > this?
> 
> git-clone is supposed to detect this condition, but there was a bug in
> the error checking code. Can you confirm that this patch fixes it?
Yes, this patch seems to fix it. Thanks.

Cheers, Sebastian

-- 
Sebastian "tokkee" Harl +++ GnuPG-ID: 0x8501C7FC +++ http://tokkee.org/

Those who would give up Essential Liberty to purchase a little Temporary
Safety, deserve neither Liberty nor Safety.         -- Benjamin Franklin
Previous: Jeff KingNext: Gerrit Pape
Message 3 of 4 in “git-clone: Unobvious error messages when update-server-info has not been run”
  1. Sebastian HarlDec 17, 2007
  2. Jeff KingDec 17, 2007
  3. Sebastian HarlDec 17, 2007
  4. Gerrit PapeDec 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.