List for cgit developers and users
 help / color / mirror / Atom feed
From: Spam Receiver <spam@chonkyrabbit.eu>
To: cgit <cgit@lists.zx2c4.com>
Subject: configuring appearance from within repository
Date: Thu, 26 Jan 2023 18:42:19 +0100	[thread overview]
Message-ID: <0cb387da2e77641eee1d6ea9f5791faae4bdf0e2.camel@chonkyrabbit.eu> (raw)

Hey there, I recently found cgit and I'm very happy about it's
performance, ease of use and overall simplicity. There is only one
thing that I did not manage to set up yet:

I want to configure repo-specific settings from within the repo itself.
For this I tried to enable the git config parsing from within cgit, and
tried to add the following to .git/config

   [gitweb]
      owner = test name = test
   
But nothing changed in the web interface. My next attempt involved the
cgitrc in the repo folder, where I added

   name = test
   
But this also did not change anything, even though the manpages
indicate that it should:

   When the option "scan-path" is used to auto-discover git
   repositories, cgit will try to parse the file "cgitrc" within any
   found repository. Such a repo- specific config file may contain any
   of the repo-specific options described above, except "repo.url" and
   "repo.path". Additionally, the "filter" options are only
   acknowledged in repo-specific config files when "enable-filter-
   overrides" is set to "1".

The only thing that cgit wanted to scan was the .git/description file.
Even removing that did not enable the above options to appear in the
repo list.

My current setup consists of bare repositories in the scan path. I want
to configure cgit from the repos themselves to make the setup easier to
maintain using scripts.

What did I do wrong here? There is barely any information about cgit on
the internet apart from the manpages, so I needed to resort to request
help here.

If you need anything else, hit me up! I'll be sure to respond as soon
as I can!

Thanks!

             reply	other threads:[~2023-01-26 17:42 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-01-26 17:42 Spam Receiver [this message]
2023-01-26 17:58 ` John Keeping

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=0cb387da2e77641eee1d6ea9f5791faae4bdf0e2.camel@chonkyrabbit.eu \
    --to=spam@chonkyrabbit.eu \
    --cc=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).