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

Re: git cole give unexpected error message

From
Petr Baudis <pasky@suse.cz>
Date
Dec 14, 2005, 11:41 UTC
Message-ID
<20051214114156.GG22159@pasky.or.cz>
In-Reply-To
<439FE7AD.6080602@op5.se>

Dear diary, on Wed, Dec 14, 2005 at 10:36:45AM CET, I got a letter where Andreas Ericsson <ae@op5.se> said that...

Show 18 quoted lines
> Petr Baudis wrote:
> >Dear diary, on Tue, Dec 13, 2005 at 10:28:20PM CET, I got a letter
> >where Sam Ravnborg <sam@ravnborg.org> said that...
> >
> >>cogito being a nice porcelain gives the git errormessage but manage to
> >>clean up when the clone fails.
> >>So also cogito would benefit from a more descriptive errormessage.
> >
> >
> >Well, git clone can fail for many reasons and I don't think the "no such
> >repository" one is completely overwhelming, so hinting that by Cogito
> >could be quite confusing (theme of the day: usability ;-)).
> >
> >The real solution would be proper error reporting by the git daemon.
> >
> 
> But that would open up for an information disclosure. If someone's 
> hacking on a patch, please make it configurable at least.

When it breaks at this stage, it's either some bad internal error (I guess memory allocation error might do this), permission problem, or repository not being found. We might then report a more generic error message "Repository not found or access denied.".

-- 
				Petr "Pasky" Baudis
Stuff: http://pasky.or.cz/
VI has two modes: the one in which it beeps and the one in which
it doesn't.
Previous: Andreas EricssonNext: Sam Ravnborg
Message 4 of 5 in “git cole give unexpected error message”
  1. Sam RavnborgDec 13, 2005
  2. Petr BaudisDec 13, 2005
  3. Andreas EricssonDec 14, 2005
  4. Petr BaudisDec 14, 2005
  5. Sam RavnborgDec 14, 2005

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.