Unable to browse Public repo

Lars Hjemli hjemli at gmail.com
Mon Jun 20 20:44:19 CEST 2011


On Mon, Jun 20, 2011 at 20:31, Dejan Tolj <dejan1 at gmail.com> wrote:
> What is the correct expression for  repo.path?
> Is this the correct one: repo.path=/root/projects/proj/.git
> It contains the HEAD and other git configs.

That seems right: repo.path should be the absolute path to the git
directory, i.e. the directory containing HEAD, the objects dir etc.

To verify that the repo is ok, do the following:

$ cd /root/projects/proj/.git && git show

You can then try running cgit from the commandline like this:

$ PATH_INFO=proj1 /path/to/cgit.cgi | less

If the generated html still claims that /root/projects/proj/.git is
not a git repository, try

$ PATH_INFO=proj1 strace /path/to/cgit.cgi  1>/dev/null 2>strace.log

Then look into strace.log and see if you can find any interesting errors.

-- 
larsh




More information about the CGit mailing list