git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] git-daemon extra paranoia

From
Junio C Hamano <junkio@cox.net>
Date
Oct 18, 2005, 22:47 UTC
Message-ID
<7v64ruo31i.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<Pine.LNX.4.64.0510181517280.3369@g5.osdl.org>
Linus Torvalds <torvalds@osdl.org> writes:
Show 15 quoted lines
> 	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.

Previous: Linus TorvaldsNext: Linus Torvalds
Message 7 of 12 in “git-daemon extra paranoia”
  1. git-daemon extra paranoiaH. Peter Anvin, Oct 18, 2005
  2. Junio C HamanoOct 18, 2005
  3. H. Peter AnvinOct 18, 2005
  4. H. Peter AnvinOct 18, 2005
  5. Revised - git-daemon extra paranoiaH. Peter Anvin, Oct 18, 2005
  6. Linus TorvaldsOct 18, 2005
  7. Junio C HamanoOct 18, 2005
  8. Linus TorvaldsOct 18, 2005
  9. H. Peter AnvinOct 19, 2005
  10. Linus TorvaldsOct 19, 2005
  11. H. Peter AnvinOct 19, 2005
  12. Junio C HamanoOct 19, 2005

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.