2011-05-30 21:33:47 +00:00
|
|
|
Frequently Asked Questions
|
2011-06-18 14:01:25 +00:00
|
|
|
--------------------------
|
2011-05-30 21:33:47 +00:00
|
|
|
|
2011-06-18 14:01:25 +00:00
|
|
|
This is a compilation of frequently asked questions on the cgit mailing
|
|
|
|
list. If you've got a cgit problem and cannot find an answer here, please
|
2014-01-08 14:38:49 +00:00
|
|
|
send a request to cgit@lists.zx2c4.com (and consider sending a patch to the
|
2011-06-18 14:01:25 +00:00
|
|
|
cgit wiki branch to update this faq if you get a nice answer to your
|
|
|
|
question).
|
2011-06-18 13:47:20 +00:00
|
|
|
|
2011-06-18 14:01:25 +00:00
|
|
|
### Why doesn't cgit find/show my repo?
|
2011-06-18 13:47:20 +00:00
|
|
|
|
2011-06-18 14:01:25 +00:00
|
|
|
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)
|
2011-06-18 13:47:20 +00:00
|
|
|
|
|
|
|
|
2011-06-18 14:01:25 +00:00
|
|
|
### Why does cgit complain that my repo is "Not a git repository"?
|
2011-06-18 13:47:20 +00:00
|
|
|
|
2011-06-18 14:01:25 +00:00
|
|
|
The most common cause of this is permission problems - see the previous
|
|
|
|
faq entry for more details.
|
|
|
|
|
|
|
|
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, infact, not a valid repo. Try
|
|
|
|
to run 'git show' in the offending repo to see if git also thinks your
|
|
|
|
repo has issues.
|
2015-08-12 15:09:15 +00:00
|
|
|
|
|
|
|
|
|
|
|
### Why is the idle time for my repository wrong?
|
|
|
|
|
|
|
|
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``.
|