Hi!

* chris <[email protected]> [2011-05-04 13:56]:
> I use gitolite to manage my repositories, and per my gitolite
> configuration the general clone url for all of my repositories is:
> 
> [email protected]:<project>

This is a short syntax supported by git because it resembles scp
usage, where you also do user@host:path. However, Git equally supports
the ssh://user@host/path syntax, which might be a better approach
because you explicitly state the protocol to use (ssh) so that a
browser may infer the appropriate program to call.

> [email protected]:

> However, with this setup, the clone url shown on each project is incorrect,
> like so:
> 
> [email protected]:/<project>
> 
> Notice the erroneous forward slash being inserted between the
> clone-prefix and project name.

As far as I can see the print_url() function is responsible
(ui-summary.c), which does a simple fmt("%s/%s", base, suffix). So
you'd have to do some patching there in order to support that short
notion you're using.

I think it's best to use the long ssh:// syntax instead.

Julius

_______________________________________________
cgit mailing list
[email protected]
http://hjemli.net/mailman/listinfo/cgit

Reply via email to