configuring appearance from within repository

Spam Receiver spam at chonkyrabbit.eu
Thu Jan 26 17:42:19 UTC 2023


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!


More information about the CGit mailing list