From mboxrd@z Thu Jan 1 00:00:00 1970 From: dcarter at mercycorps.org (Doug Carter) Date: Wed, 15 Jan 2014 06:24:08 -0800 Subject: ssh clone config In-Reply-To: References: <20140114210943.GA24524@mercycorps.org> Message-ID: <20140115142408.GA27196@mercycorps.org> On Wed, Jan 15, 2014 at 08:24:21AM +0100, Lars Hjemli wrote: > On Tue, Jan 14, 2014 at 10:09 PM, Doug Carter 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 at git.foo.com:foo.git Maybe this is an apache config thing?