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

Re: Unable to get "pretty" URL aliases working

From
Adam Nielsen <adam.nielsen@uq.edu.au>
Date
Jan 11, 2010, 23:23 UTC
Message-ID
<4B4BB2DC.4090203@uq.edu.au>
In-Reply-To
<7v7hrpvzqa.fsf@alter.siamese.dyndns.org>
Hi all,
Thanks for the replies!
Show 6 quoted lines
> In any case, "attempting to learn Git" doesn't mix well with use of
> "insteadOf" to me.  If you know /path/to/repos/project.git is what you
> want to access, any "attempting to learn Git" person would do more
> straight-forward "git clone ssh://myserver/path/to/repos/project.git", or
> "git clone myserver:/path/to/repos/project.git" which is even better (it
> is shorter to type and is a more natural form to spell ssh transport).

Jumping in the deep end is a valid method of learning :-) Does that mean anyone using my repositories really needs to know exactly where on the server I choose to keep them? Something like "git clone myserver:/mnt/raid/nightly-backedup/public/repositories/git/project.git" isn't particularly friendly. (It's something that bugs me with NFS as well.) What happens if I want to move the repositories to another area on the server? Do all users have to update their local copies with a new origin address?

Is there any hacky way that this could be made to work? I guess I could symlink my repository directory to /git, then myserver:/git/project.git might work.

What actually happens when you use the ssh:// style connection? git-daemon has a --base-path option which solves this issue for git:// URLs, so do ssh:// URLs not use the git protocol at all? What is git+ssh://? Does that SSH to the machine and then connect to git-daemon via localhost? Because that would presumably make use of --base-path.

Thanks again, Adam.

Previous: Junio C HamanoNext: Junio C Hamano
Message 4 of 6 in “Unable to get "pretty" URL aliases working”
  1. Adam NielsenJan 11, 2010
  2. Johannes SixtJan 11, 2010
  3. Junio C HamanoJan 11, 2010
  4. Adam NielsenJan 11, 2010
  5. Junio C HamanoJan 13, 2010
  6. Adam NielsenJan 14, 2010

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.