List for cgit developers and users
 help / color / mirror / Atom feed
* ssh clone config
@ 2014-01-14 21:09 dcarter
       [not found] ` <CAFXTnz5ZN26sNMWpCg86wadvqJXrtzncWKvmoRQALmAXU_BXzg@mail.gmail.com>
  0 siblings, 1 reply; 4+ messages in thread
From: dcarter @ 2014-01-14 21:09 UTC (permalink / raw)



Hi All,

Sorry if this is already an answered question, but I've been through
the docs and the mailing list archives but couldn't find anything.

I have a local, in house gitolite repo with the latest cgit up and
running. Since it's private and open to all engineers, 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?

TIA



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Fwd: ssh clone config
       [not found] ` <CAFXTnz5ZN26sNMWpCg86wadvqJXrtzncWKvmoRQALmAXU_BXzg@mail.gmail.com>
@ 2014-01-15  7:25   ` hjemli
  2014-01-15 14:24   ` dcarter
  1 sibling, 0 replies; 4+ messages in thread
From: hjemli @ 2014-01-15  7:25 UTC (permalink / raw)


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

--
larsh


^ permalink raw reply	[flat|nested] 4+ messages in thread

* ssh clone config
       [not found] ` <CAFXTnz5ZN26sNMWpCg86wadvqJXrtzncWKvmoRQALmAXU_BXzg@mail.gmail.com>
  2014-01-15  7:25   ` Fwd: " hjemli
@ 2014-01-15 14:24   ` dcarter
  2014-01-15 14:26     ` Jason
  1 sibling, 1 reply; 4+ messages in thread
From: dcarter @ 2014-01-15 14:24 UTC (permalink / raw)



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?



^ permalink raw reply	[flat|nested] 4+ messages in thread

* ssh clone config
  2014-01-15 14:24   ` dcarter
@ 2014-01-15 14:26     ` Jason
  0 siblings, 0 replies; 4+ messages in thread
From: Jason @ 2014-01-15 14:26 UTC (permalink / raw)


The cgitrc on git.zx2c4.com reads:

clone-url=git://git.zx2c4.com/$CGIT_REPO_NAME
http://git.zx2c4.com/$CGIT_REPO_NAME ssh://git at git.zx2c4.com/$CGIT_REPO_NAME

Using the various macros available in cgitrc.5.txt, you should be able to
customize this how you like.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.zx2c4.com/pipermail/cgit/attachments/20140115/386d8568/attachment-0001.html>


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-01-15 14:26 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-01-14 21:09 ssh clone config dcarter
     [not found] ` <CAFXTnz5ZN26sNMWpCg86wadvqJXrtzncWKvmoRQALmAXU_BXzg@mail.gmail.com>
2014-01-15  7:25   ` Fwd: " hjemli
2014-01-15 14:24   ` dcarter
2014-01-15 14:26     ` Jason

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).