about summary refs log tree commit diff
FAQ(7) Miscellaneous Information Manual FAQ(7)

This is a compilation of frequently asked questions on the cgit mailing list.

This is most likely due to permission problems: cgit runs under your webserver user account and will need read access to your repo (and all of the parent directories).

The most common cause of this is permission problems — see the previous FAQ entry.

The second most common cause is that you've set repo.path to point at the working-directory of your git repo — it should point at the $GITDIR, i.e. the .git directory.

A less likely cause is that the repo is, in fact, not a valid repo. Try to run ‘git show’ in the offending repo to see if git also thinks your repo has issues.

By default cgit uses the modification time of the default branch's ref file as a quick method of determining when the repository was last changed. If you primarily work on other branches then this work will not be reflected in the idle time.

You can use a post-receive hook to run a script that tells cgit the correct modification time by writing to info/web/last-modified. An example is provided in the cgit repository at contrib/hooks/post-receive.agefile.

February 13, 2022 Causal Agency