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

Re: [RFC] GIT paths

From
Junio C Hamano <junkio@cox.net>
Date
Oct 26, 2005, 06:12 UTC
Message-ID
<7vmzkwajrv.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<435E259D.3040701@op5.se>
Andreas Ericsson <ae@op5.se> writes:
Show 7 quoted lines
> About the literally named /~junio directory, it would be possible with 
> this syntax;
>
> 	git fetch host.xz:/~junio
>
> The userdir is (with my previous patch) only expanded if the path starts 
> with a tilde.
I do not necessarily consider that a feature; see next item.
Show 6 quoted lines
> It must remove the leading slash for this syntax:
>
> 	ssh://host.xz/~junio/repo
>
> Otherwise it would be passed as /~junio/repo to the remote end and no 
> ~user interpolation would be done.

Not necessarily. Having the remote end interpret "/~user" and "~user" the same way might make things more consistent; in other words, "http://host/~user" is not spelled "http://host~user".

> I'd say make it invoke the programs with the canonicalized path. As you 
> say, git-daemon has to verify that it's a proper git repo and in the 
> whitelist anyway so I think it would be silly to add extra complexity to 
> upload-pack and receive-pack.
Yeah, I tend to agree here.
>>  - Give --server-root=/path/to/root flag to programs...
>
> If we stick with canonicalized paths I suppose this can be dropped.
Sounds good.
Previous: H. Peter AnvinNext: Andreas Ericsson
Message 4 of 5 in “[RFC] GIT paths”
  1. Junio C HamanoOct 24, 2005
  2. Andreas EricssonOct 25, 2005
  3. H. Peter AnvinOct 25, 2005
  4. Junio C HamanoOct 26, 2005
  5. Andreas EricssonOct 26, 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.