From mboxrd@z Thu Jan 1 00:00:00 1970 From: garyyang6 at yahoo.com (Gary Yang) Date: Mon, 26 Sep 2016 17:36:23 +0000 (UTC) Subject: cgit: No repositories found In-Reply-To: <20160926141511.GG1673@john.keeping.me.uk> References: <2006118398.636483.1474674085378.ref@mail.yahoo.com> <2006118398.636483.1474674085378@mail.yahoo.com> <20160926141511.GG1673@john.keeping.me.uk> Message-ID: <1101990223.945349.1474911383794@mail.yahoo.com> Hi John, After I setup cgit. I got "No repositories found". It is CentOS 7.2 platform. Please help. Here are what I did.? 1. After installed gitolite, I got repos at? /home/git/repositories/gitolite-admin.git and testing.git #Repositories permission:ls -alF /home/gitdrwxrwxrwx. ?5 git ?git ? ? ? 70 Sep 23 15:19 repositories #Repositories permission:ls -alF repositoriesdrwxrwxrwx. ?8 git git 4096 Sep 22 17:46 gitolite-admin.git/drwxrwxrwx. ?7 git git 4096 Sep 22 17:46 testing.git/ ls -alF /home/git/projects.list?-rw-rw-r--. 1 git git 46 Sep 23 15:00 /home/git/projects.list cat /home/git/projects.list?testing.gitgitolite-admin.git 2. After installed cgit, changed line below in default cgitrcclone-url=git://servergit01/$CGIT_REPO_URL git at servergit01:$CGIT_REPO_URL Added 3 lines to default cgitrc at the bottom. enable-git-config=1project-list=/home/git/projects.listscan-path=/home/git/repositories In /etc/httpd/conf/httpd.conf ? ?ScriptAlias /cgi-bin/ "/var/www/cgi-bin/" IncludeOptional conf.d/*.conf ? ? ?AllowOverride None? ? ?Options +ExecCGI? ? ?Order allow,deny? ? ?Allow from all 3. Copied /var/www/htdocs/cgit/cgit.cgi to /var/www/cgi-bin/cgitcp /var/www/htdocs/cgit/cgit.cgi to /var/www/cgi-bin/cgit #Restart apacheapachectl restart #ID apache belongs to apache and git groupsgroups apacheapache : apache git However, I got "No repositories found" when I hit the page: http://servergit01/cgit Please help. Gary On Monday, September 26, 2016 7:15 AM, John Keeping wrote: Please try to send plain text email, I've had to reformat this heavily to make it readable. On Fri, Sep 23, 2016 at 11:41:25PM +0000, Gary Yang wrote: > After I setup cgit. I got "No repositories found". It is CentOS 7.2 platform. Please help. Here are what I did. > > 1. After installed gitolite, I got repos at /home/git/repositories/gitolite-admin.git and testing.git > > #Repositories permission: > ls -alF /home/gits > drwxrwxrwx.? 5 git git 70 Sep 23 15:19 repositories > > #Repositories permission: > ls -alF repositories > drwxrwxrwx.? 8 git git 4096 Sep 22 17:46 gitolite-admin.git/ > drwxrwxrwx.? 7 git git 4096 Sep 22 17:46 testing.git/ > > ls -alF /home/git/projects.list > -rw-rw-r--. 1 git git 46 Sep 23 15:00 /home/git/projects.list > cat /home/git/projects.list > testing.gitgitolite-admin.git > > 2. After installed cgit, changed line below in default cgitrc > clone-url=git://servergit01/$CGIT_REPO_URL git at servergit01:$CGIT_REPO_URL > > Added 3 lines to default cgitrc at the bottom. > enable-git-config=1 > project-list=/home/git/projects.list > scan-path=/home/git/repositories > In /etc/httpd/conf/httpd.conf > >? ? ScriptAlias /cgi-bin/ "/var/www/cgi-bin/" >? ? IncludeOptional conf.d/*.conf > >? ? AllowOverride None >? ? Options +ExecCGI >? ? Order allow,deny >? ? Allow from all > > 3. Copied /var/www/htdocs/cgit/cgit.cgi to /var/www/cgi-bin/cgit > cp /var/www/htdocs/cgit/cgit.cgi to /var/www/cgi-bin/cgit > > However, I got "No repositories found" when I hit the page: http://servergit01/cgit > Please help. This all looks sensible, but the upstream CGit project does not ship a default cgitrc, so you must be using something provided by your distribution.? I can't say what other options may be set there. One option that might be relevant is "strict-export", if that is set there are additional requirements for repositories to be displayed. -------------- next part -------------- An HTML attachment was scrubbed... URL: