Subject: Re: git-daemon: path validation, export all option

From: "H. Peter Anvin" <[email-masked]>
Date: Tue, 27 Sep 2005 08:36:18 -0700

Linus Torvalds wrote:
> 
> Removing the "chdir(".git")" thing is very wrong, though. Why do it?
> 
> It's very much on purpose: you can export even "regular" git trees (ie 
> trees you have checked out) without the other side having to say
> 
> 	git clone machine.com:/home/torvalds/v2.6/linux/.git
> 
> where the final "/.git" is just stupid.
> 

Agreed.  I wasn't thinking too hard about it, and it doesn't do any harm 
since failure is ignored.

	-hpa