From: dcarter at mercycorps.org (Doug Carter)
Subject: ssh clone config
Date: Wed, 15 Jan 2014 06:24:08 -0800 [thread overview]
Message-ID: <20140115142408.GA27196@mercycorps.org> (raw)
In-Reply-To: <CAFXTnz5ZN26sNMWpCg86wadvqJXrtzncWKvmoRQALmAXU_BXzg@mail.gmail.com>
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 at git.foo.com:foo.git
Maybe this is an apache config thing?
next prev parent reply other threads:[~2014-01-15 14:24 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-14 21:09 dcarter
[not found] ` <CAFXTnz5ZN26sNMWpCg86wadvqJXrtzncWKvmoRQALmAXU_BXzg@mail.gmail.com>
2014-01-15 7:25 ` Fwd: " hjemli
2014-01-15 14:24 ` dcarter [this message]
2014-01-15 14:26 ` Jason
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20140115142408.GA27196@mercycorps.org \
--to=cgit@lists.zx2c4.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).