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

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

From
Linus Torvalds <torvalds@osdl.org>
Date
Sep 27, 2005, 15:03 UTC
Message-ID
<Pine.LNX.4.58.0509270802140.3308@g5.osdl.org>
In-Reply-To
<4338AACC.1050305@zytor.com>
On Mon, 26 Sep 2005, H. Peter Anvin wrote:
Show 5 quoted lines
>
> 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
Previous: Junio C HamanoNext: H. Peter Anvin
Message 6 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.