List for cgit developers and users
 help / color / mirror / Atom feed
* configuring appearance from within repository
@ 2023-01-26 17:42 Spam Receiver
  2023-01-26 17:58 ` John Keeping
  0 siblings, 1 reply; 2+ messages in thread
From: Spam Receiver @ 2023-01-26 17:42 UTC (permalink / raw)
  To: cgit

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!

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

* Re: configuring appearance from within repository
  2023-01-26 17:42 configuring appearance from within repository Spam Receiver
@ 2023-01-26 17:58 ` John Keeping
  0 siblings, 0 replies; 2+ messages in thread
From: John Keeping @ 2023-01-26 17:58 UTC (permalink / raw)
  To: Spam Receiver; +Cc: cgit

On Thu, Jan 26, 2023 at 06:42:19PM +0100, Spam Receiver wrote:
> 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

To confirm, you have "enable-git-config = 1" in the global cgitrc
*before* the scan-path directory?

>    [gitweb]
>       owner = test name = test

There should be a line break between "test" and "name" here, right?

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

There must not be any spaces around "=" in cgitrc files, so this should
be:

	name=test


Regards,
John

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

end of thread, other threads:[~2023-01-26 17:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-26 17:42 configuring appearance from within repository Spam Receiver
2023-01-26 17:58 ` John Keeping

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