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

Re: git-daemon: path validation, export all option

From
HAH. Peter Anvin <hpa@zytor.com>
Date
Sep 27, 2005, 15:36 UTC
Message-ID
<433966F2.3090304@zytor.com>
In-Reply-To
<Pine.LNX.4.58.0509270802140.3308@g5.osdl.org>
Linus Torvalds wrote:
Show 10 quoted lines
> 
> 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
Previous: Linus Torvalds
Message 7 of 7 in “git-daemon: path validation, export all option”
  1. H. Peter AnvinSep 27, 2005
  2. Junio C HamanoSep 27, 2005
  3. Anton AltaparmakovSep 27, 2005
  4. H. Peter AnvinSep 27, 2005
  5. Junio C HamanoSep 27, 2005
  6. Linus TorvaldsSep 27, 2005
  7. H. Peter AnvinSep 27, 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.