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

Re: [PATCH 3/3] daemon: Support a --user-path option.

From
Junio C Hamano <junkio@cox.net>
Date
Feb 3, 2006, 20:52 UTC
Message-ID
<7vr76kcggx.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<20060203202706.1895.70864.stgit@metalzone.distorted.org.uk>
Mark Wooding <mdw@distorted.org.uk> writes:
> If we're invoked with --user-path=FOO option, then a URL of the form
> git://~USER/PATH/... resolves to the path HOME/FOO/PATH/..., where HOME
> is USER's home directory.
I am probably slow as usual but I do not see how this is useful.

Wouldn't loosening the "request must be absolute if you use --base-path" check in the area your first patch in the series touches to also allow paths that start with a '~' be enough? That way ~alice/foo would remain to be /home/alice/foo (with /home/alice being alice's $HOME) and ~becky/bar would be /home2/becky/bar (with /home2/becky being becky's $HOME).

I suppose you are doing something similar to ~/public_html, but I think that is an independent feature.

Previous: Mark WoodingNext: Junio C Hamano
Message 8 of 13 in “git-daemon hacking”
  1. 0/3 git-daemon hackingMark Wooding, Feb 3, 2006
  2. 1/3 daemon: Provide missing argument for logerror() call.Mark Wooding, Feb 3, 2006
  3. 2/3 daemon: Set SO_REUSEADDR on listening sockets.Mark Wooding, Feb 3, 2006
  4. Junio C HamanoFeb 3, 2006
  5. Junio C HamanoFeb 4, 2006
  6. Mark WoodingFeb 4, 2006
  7. 3/3 daemon: Support a --user-path option.Mark Wooding, Feb 3, 2006
  8. Junio C HamanoFeb 3, 2006
  9. Junio C HamanoFeb 4, 2006
  10. Mark WoodingFeb 4, 2006
  11. Junio C HamanoFeb 4, 2006
  12. Mark WoodingFeb 4, 2006
  13. Junio C HamanoFeb 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.