gitweb doesn't work with bare repositories
Hi,
I have installed gitweb and can't make it work with bare repos. I have such config:
$my_uri = "http://mysite.org:8000";
$projectroot = "/srv/www/gamekeeper/htdocs/projects";
In projects I have created bare repo:
mkdir some
cd some.git
git --bare init
cd /some_git_repo
git push /srv/www/gamekeeper/htdocs/projects master
Everything fine, but when I click the link on some.git I don't have a page (just "Error 404").
But if I clone /some_git_repo with some in the projects, I have a link "some/.git" and it works fine.
Permissions are ok, virtual host is ok since I get main page and have access to cloned repo.
What can be wrong?
Signature · 2 lines
Cheers, Evgeniy. Key fingerprint: F316 B5A1 F6D2 054F CD18 B74A 9540 0ABB 1FE5 67A3
Quoted 1 line · Evgeniy Ivanov
Hi,
Hi.
Just checking now, but are the following corrections right?
Quoted 2 lines
In projects I have created bare repo:
mkdir some
mkdir some.git
Quoted 4 lines
cd some.git
git --bare init
cd /some_git_repo
git push/srv/www/gamekeeper/htdocs/projectsmaster
git push /srv/www/gamekeeper/htdocs/projects/some.git master
Quoted 2 lines
Permissions are ok, virtual host is ok since I get main page and have access to cloned repo.
You're sure the user the webserver is running as has access to the repo as well?
- Fredrik
Signature · 2 lines
Kind regards, Fredrik Skolmli
As a note kernel.org uses, predominantly, bare repositories and it works fine there....
- John 'Warthog9' Hawley
Chief Kernel.org Administrator
Quoted 36 lines · Fredrik Skolmli
Quoted 2 lines · Evgeniy Ivanov
Hi,
Hi.
Just checking now, but are the following corrections right?
Quoted 3 lines
In projects I have created bare repo:
mkdir somemkdir some.git
Quoted 5 lines
cd some.git
git --bare init
cd /some_git_repo
git push/srv/www/gamekeeper/htdocs/projectsmastergit push
/srv/www/gamekeeper/htdocs/projects/some.gitmasterQuoted 3 lines
Permissions are ok, virtual host is ok since I get main page and have access to cloned repo.
You're sure the user the webserver is running as has access to the repo as well?
- Fredrik
Thanks to everybody for answers. I'm not subscribed and saw them in the list archive.
All things you have noticed are typos, sure I typed commands correctly. The problem was caused by "$feature{'pathinfo'}{'default'} = [1];" in the config. So the problem is solved now.
Good luck :)
Quoted 25 lines · Evgeniy Ivanov
Hi,
I have installed gitweb and can't make it work with bare repos. I have such config:
$my_uri = "http://mysite.org:8000";
$projectroot = "/srv/www/gamekeeper/htdocs/projects";In projects I have created bare repo:
mkdir some
cd some.git
git --bare init
cd /some_git_repo
git push/srv/www/gamekeeper/htdocs/projectsmasterEverything fine, but when I click the link on some.git I don't have a page (just "Error 404").
But if I clone /some_git_repo with some in the projects, I have a link "some/.git" and it works fine.
Permissions are ok, virtual host is ok since I get main page and have access to cloned repo.
What can be wrong?
Signature · 2 lines
Cheers, Evgeniy. Key fingerprint: F316 B5A1 F6D2 054F CD18 B74A 9540 0ABB 1FE5 67A3
Quoted 1 line · Evgeniy Ivanov
I have installed gitweb and can't make it work with bare repos.
Actually gitweb treats all repositories as bare repositories, and doesn't touch at all neither index nor working area.
Quoted 5 lines
I have such config:
$my_uri = "http://mysite.org:8000"; $projectroot = "/srv/www/gamekeeper/htdocs/projects";In projects I have created bare repo:
I assume that you have done:
$ cd /srv/www/gamekeeper/htdocs/projects
Quoted 1 line
$ mkdir some
I assume that you meant here
$ mkdir some.git
Quoted 4 lines
$ cd some.git $ git --bare init $ cd /some_git_repo $ git push /srv/www/gamekeeper/htdocs/projects master
I assume that you meant:
$ git push /srv/www/gamekeeper/htdocs/projects/some.git master
Quoted 3 lines
Everything fine, but when I click the link on some.git I don't have a page (just "Error 404").
What error? Please provide _exact_ error message.
Does the problem persists with the following corrections? Do you have permissions set up correctly? How did you generate gitweb.cgi?
SAA#1 (Standard admin answer #1): WORKSFORME.
Signature · 3 lines
Jakub Narebski Poland ShadeHawk on #git