faq (view raw)
1Frequently Asked Questions
2--------------------------
3
4This is a compilation of frequently asked questions on the cgit mailing
5list. If you've got a cgit problem and cannot find an answer here, please
6send a request to cgit@lists.zx2c4.com (and consider sending a patch to the
7cgit wiki branch to update this faq if you get a nice answer to your
8question).
9
10### Why doesn't cgit find/show my repo?
11
12This is most likely due to permission problems: cgit runs under your
13webserver user account and will need read access to your repo (and all
14of the parent directories)
15
16
17### Why does cgit complain that my repo is "Not a git repository"?
18
19The most common cause of this is permission problems - see the previous
20faq entry for more details.
21
22The second most common cause is that you've set repo.path to point at the
23working-directory of your git repo - it should point at the $GITDIR, i.e.
24the .git directory.
25
26A less likely cause is that the repo is, infact, not a valid repo. Try
27to run 'git show' in the offending repo to see if git also thinks your
28repo has issues.
29
30
31### Why is the idle time for my repository wrong?
32
33By default CGit uses the modification time of the default branch's ref
34file as a quick method of determining when the repository was last
35changed. If you primarily work on other branches then this work will
36not be reflected in the idle time.
37
38You can use a post-receive hook to run a script that tells CGit the
39correct modification time by writing to ``info/web/last-modified``. An
40example is provided in the CGit repository at
41``contrib/hooks/post-receive.agefile``.