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.