From: Linus Torvalds Date: Tue, 27 Sep 2005 15:03:54 GMT Subject: Re: git-daemon: path validation, export all option Message-ID: In-Reply-To: <4338AACC.1050305@zytor.com> On Mon, 26 Sep 2005, H. Peter Anvin wrote: > > 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