Go - Serving modules

Levi Durfee levi.durfee at gmail.com
Thu Jan 12 16:00:47 UTC 2023


Thank you! I had to use a ``cgitrc`` file in the repo directory, but I
got it working.

On Thu, Jan 12, 2023 at 4:20 AM Gianni Ceccarelli
<dakkar at thenautilus.net> wrote:
>
> On Wed, 11 Jan 2023 20:50:35 -0500
> Levi Durfee <levi.durfee at gmail.com> wrote:
>
> > I'm using scan-path to find the repositories.
>
> Then you can set per-repository options inside each repo ``config``
> file (I manage those via ``gitolite``, but you can just edit them).
>
> So for a repo at ``/var/lib/gitrepos/foo-go.git``, you'd edit
> ``/var/lib/gitrepos/foo-go.git/config`` and add::
>
>   [cgit]
>       extra-head-content = <meta name="go-import" content="git.example.com/foo-go git https://git.example.com/foo-go" /></head>
>
> But yes, having a macro-expanded ``head-include`` option would be useful.
>
> --
>         Dakkar - <Mobilis in mobile>
>         GPG public key fingerprint = A071 E618 DD2C 5901 9574
>                                      6FE2 40EA 9883 7519 3F88
>                             key id = 0x75193F88
>


More information about the CGit mailing list