ssh clone config
Doug Carter
dcarter at mercycorps.org
Wed Jan 15 15:24:08 CET 2014
On Wed, Jan 15, 2014 at 08:24:21AM +0100, Lars Hjemli wrote:
> On Tue, Jan 14, 2014 at 10:09 PM, Doug Carter <dcarter at mercycorps.org> wrote:
> > I'd like to create
> > a some ssl clone text that can be copy/pasted like github does it:
> >
> > git at git.foo.com:repo.git
> >
> > Is there a way to do this and not include any URLs?
>
> Yes, using the 'clone-prefix' and/or 'clone-url' settings in cgitrc:
> http://git.zx2c4.com/cgit/tree/cgitrc.5.txt
I've tried a variety of configurations with these settings, but no matter
what I try, it prepends the site URL. For example, if I set clone-url to
"git at git.foo.com:$CGIT_REPO_URL", the text displays OK, but the href is
set to:
https://git.foo.com/cgit.cgi/foo/git@git.foo.com:foo.git
Maybe this is an apache config thing?
More information about the CGit
mailing list