gitweb- fatal: not a git repository

Posted by Robert Mason on Server Fault See other posts from Server Fault or by Robert Mason
Published on 2011-03-16T00:59:06Z Indexed on 2011/03/16 8:11 UTC
Read the original article Hit count: 296

Filed under:
|
|

So I have set up a simple server running debian stable (squeeze), and have configured git.
Using gitolite, I have all functionality (at least the basic clone/push/pull/commit) working.
Installation of gitweb went without any issues. However, when I access gitweb, I get a gitweb screen without any repos listed.

# tail -n 1 /var/log/apache2/error.log
[DATE] [error] [client IP_ADDRESS] fatal: Not a git repository: '/var/lib/gitolite/repositories/testrepo.git'

# cd /var/lib/gitolite/repositories/testrepo.git
# ls
branches  config  HEAD  hooks  info  objects  refs

Here is what I see in /var/lib/gitolite/projects.list:

testrepo.git

And in /etc/gitweb.conf:

# path to git projects (<project>.git)
$projectroot = "/var/lib/gitolite/repositories";

# directory to use for temp files
$git_temp = "/tmp";

# target of the home link on top of all pages
#$home_link = $my_uri || "/";

# html text to include at home page
$home_text = "indextext.html";

# file with project list; by default, simply scan the projectroot dir.
$projects_list = "/var/lib/gitolite/projects.list";

# stylesheet to use
$stylesheet = "gitweb.css";

# javascript code for gitweb
$javascript = "gitweb.js";

# logo to use
$logo = "git-logo.png";

# the 'favicon'
$favicon = "git-favicon.png";

What is missing?

© Server Fault or respective owner

Related posts about git

Related posts about gitweb