git cole give unexpected error message
Encountered following minor issue today:
Executed:
sam@mars ~/work $ git clone git://git.kernel.org/pub/scm/lib/klibc/klibc.git viggo defaulting to local storage area
fatal: unexpected EOF
The errormessage "fatal: unexpected EOF" did not immediately tell me that the requested git repository did not exists.
But I corrected the path and tried again:
sam@mars ~/work $ git clone git://git.kernel.org/pub/scm/libs/klibc/klibc.git viggo viggo already exists.
So one can see that git did not clean up after the faulty clone.
It would be nice if git:
1) Displayed a more meaningfull error message
2) Cleaned up so I did not have to do a manual rm -rf viggo
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.
Sam
Dear diary, on Tue, Dec 13, 2005 at 10:28:20PM CET, I got a letter where Sam Ravnborg <[email protected]> said that...
Quoted 3 lines
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.
Signature · 4 lines
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.
Quoted 11 lines · Petr Baudis
Dear diary, on Tue, Dec 13, 2005 at 10:28:20PM CET, I got a letter where Sam Ravnborg <[email protected]> said that...
Quoted 3 lines
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.
Which was my point too.
When using cogito it displyed the git error message so having git to print a sensible error message would also benefit cogito.
Sam
Quoted 8 lines · Petr Baudis
Dear diary, on Tue, Dec 13, 2005 at 10:28:20PM CET, I got a letter where Sam Ravnborg <[email protected]> said that...
Quoted 3 lines
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.
Quoted 6 lines
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.
Signature · 3 lines
Andreas Ericsson [email protected] OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231
Dear diary, on Wed, Dec 14, 2005 at 10:36:45AM CET, I got a letter where Andreas Ericsson <[email protected]> said that...
Quoted 13 lines
Quoted 12 lines · Petr Baudis
Dear diary, on Tue, Dec 13, 2005 at 10:28:20PM CET, I got a letter where Sam Ravnborg <[email protected]> said that...
Quoted 3 lines
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 ;-)).
Quoted 5 lines
Quoted 2 lines
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.".
Signature · 4 lines
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.