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

Re: git daemon directory munging?

From
HAH. Peter Anvin <hpa@zytor.com>
Date
Jun 4, 2006, 23:08 UTC
Message-ID
<44836803.5070405@zytor.com>
In-Reply-To
<Pine.LNX.4.64.0606031722340.5498@g5.osdl.org>
Linus Torvalds wrote:
Show 9 quoted lines
> 
> On Sat, 3 Jun 2006, Jon Loeliger wrote:
>> <jdl> Thus, I'd use something like:
>>       --map-base=www.foo.com/pub/scm:/pub/foo/scm
>>       --map-base=www.bar.com/pub/scm=/pub/bar/scm
> 
> The bigger problem is that nothing actually passes in the hostname to 
> git-daemon in the first place. By the time the git-daemon is contacted, 
> the hostname is long gone ;(

Well, you can bind different git daemons to different IP addresses (IP-based vhosting) or different ports (with SRV records in DNS.)

Show 6 quoted lines
> Now, you can just extend the git protocol to just pass in the host too. 
> 
> You can in fact do this in a backwards-compatible manner (old git-daemons 
> will just ignore it, and new git daemons will automatically notice new 
> clients) with something evil like the appended.
> 
That's actually what was done to HTTP.
> Not tested (and this actualyl doesn't make the daemon _use_ the data, it 
> just adds a comment - the rest "is left as an exercise for the reader")
	-hpa
Previous: H. Peter Anvin
Message 5 of 5 in “git daemon directory munging?”
  1. Jon LoeligerJun 4, 2006
  2. Linus TorvaldsJun 4, 2006
  3. Junio C HamanoJun 4, 2006
  4. H. Peter AnvinJun 4, 2006
  5. H. Peter AnvinJun 4, 2006

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.