Re: git-daemon: path validation, export all option
- From
Linus Torvalds <torvalds@osdl.org>
- Date
- Sep 27, 2005, 15:03 UTC
- Message-ID
- <Pine.LNX.4.58.0509270802140.3308@g5.osdl.org>
- In-Reply-To
- <4338AACC.1050305@zytor.com>
On Mon, 26 Sep 2005, H. Peter Anvin wrote:
Show 5 quoted lines
> > A first attempt to make git-daemon a bit more suitable for kernel.org > use: it allows the user to specify a whitelist of directories, rejects > paths which have . or .. in them (to avoid bypassing the whitelist), and > allows for an --export-all option.
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.
Linus