Re: Efficiency of initial clone from server
- From
Andreas Ericsson <ae@op5.se>
- Date
- Feb 13, 2007, 15:03 UTC
- Message-ID
- <45D1D32C.1070900@op5.se>
- In-Reply-To
- <9e4733910702112053q2c196ddcr970a062281d332b7@mail.gmail.com>
Jon Smirl wrote:
Show 15 quoted lines
> On 2/11/07, Junio C Hamano <junkio@cox.net> wrote: >> "Jon Smirl" <jonsmirl@gmail.com> writes: >> >> > jonsmirl@jonsmirl:/extra$ git clone >> > git://git.kernel.org/pub/scm/linux/kernel/gt/linville/wireless-dev.git >> > Initialized empty Git repository in /extra/wireless-dev/.git/ >> > fatal: The remote end hung up unexpectedly >> >> Are you sure the above is ".../linux/kernel/gt/linville/..."? > > You're right it should be git instead of gt, somewhere in my copying > strings around I lost the 'i' and wasn't paying attention. That's not > a very good error message: "fatal: The remote end hung up > unexpectedly" for a missing repository. >
It's necessary for security reasons that the git daemon doesn't tell you *why* it failed though, otherwise attackers could use the git daemon to browse the existance of files and directories on the remote end.
It could be nice to add "Are you sure $path_to_repo hosts a repository?" to the message though, which would toss any spelling errors in the users' face.
-- Andreas Ericsson andreas.ericsson@op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231