Jeff King [off-list ref] writes:
Junio, can I get an ACK or NAK on the patch below?
I do not think it would hurt. Is the "local" case the only
codepath that needs this (iow, we would not need this message if
other transports die more loudly and/or we cannot tell if the
failure is wrong URL or empty remote repository)?
On Sat, Nov 17, 2007 at 05:06:51PM -0800, Junio C Hamano wrote:
quoted
Junio, can I get an ACK or NAK on the patch below?
I do not think it would hurt. Is the "local" case the only
codepath that needs this (iow, we would not need this message if
other transports die more loudly and/or we cannot tell if the
failure is wrong URL or empty remote repository)?
Good question, and the answer is yes, it is the only spot that produces
no useful output. The other errors are:
via ssh, git-daemon, or file:// (all using receive-pack) you get:
$ git-clone localhost:foo bar
Initialized empty Git repository in /home/peff/bar/.git/
fatal: no matching remote head
fetch-pack from 'localhost:foo' failed.
via http, you get:
$ git-clone http://localhost/git/foo bar
Initialized empty Git repository in /home/peff/bar/.git/
Cannot get remote repository information.
Perhaps git-update-server-info needs to be run there?
I didn't try rsync, though I expect it should be the same as http.
-Peff