Re: git-daemon: path validation, export all option
- From
- H. Peter Anvin <hpa@zytor.com>
- Date
- Sep 27, 2005, 15:36 UTC
- Message-ID
- <433966F2.3090304@zytor.com>
- In-Reply-To
- <Pine.LNX.4.58.0509270802140.3308@g5.osdl.org>
Linus Torvalds wrote:
Show 10 quoted lines
>
> 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