From: Junio C Hamano Date: Tue, 18 Oct 2005 22:47:53 GMT Subject: Re: [PATCH] git-daemon extra paranoia Message-ID: <7v64ruo31i.fsf@assigned-by-dhcp.cox.net> In-Reply-To: Linus Torvalds writes: > git pull git://host/home/linux-2.6 > > will on the remote end do: > > chdir("/home/linux-2.6") // fails with ENOENT > chdir("/home/linux-2.6.git") // works > chdir(".git") // works > > resulting in it ending up in /home/linux-2.6.git/.git, which is exactly > correct, and where it wants to be. > > I personally find it a nice bit of usability enhancement. You can name > your git repositories with a ".git" suffix (which can help all kinds of > automated tasks - like autopacking), but you don't force your users to > care. Wouldn't having /home/linux-2.6/.git/ repository with /home/linux-2.6/ working tree be good enough for that? Instead of doing "find / -type d -name '*.git'" you could do "find / -type d -name .git" for automated tasks.