From: H. Peter Anvin Date: Tue, 27 Sep 2005 15:36:18 GMT Subject: Re: git-daemon: path validation, export all option Message-ID: <433966F2.3090304@zytor.com> In-Reply-To: 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