I can't see my project in gitweb. How do you configure gitweb properly?

Trevor Boyd Smith picture Trevor Boyd Smith · Dec 22, 2011 · Viewed 7k times · Source

Goal: To see my project in the gitweb webpage.

I have git+gitolite+gitweb installed. My gitolite.conf file is:

repo    gitolite-admin
        RW+     =   ADMINUSER

repo    testing
        RW+     =   @all

repo    PROJECT1
        RW+     =   USER1
        RW+     =   USER2
        R       =   gitweb

When I go to my server's http://server/gitweb/gitweb.cgi but the only projects that I can see are:

  • testing.git

On the server running gitolite. The /home/git/projects.list file has:

PROJECT1.git

How do I get PROJECT1 to show up when I go to the gitweb URL?

Answer

HVNSweeting picture HVNSweeting · Aug 17, 2012

Make sure your gitweb.conf has follow lines.

$projectroot = "/home/git/repositories"; 
$projects_list = "/home/git/projects.list";

change that path to yours. I had same problem because I dont have the second line. So my repo show randomly on web.