{"thread":{"id":"16523","subject":"gitweb doesn't work with bare repositories","startedAt":"2008-11-29T23:37:30Z","lastAt":"2008-11-30T14:52:46Z","messageCount":5,"participants":["Evgeniy Ivanov","Fredrik Skolmli","J.H.","Jakub Narebski"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"96744","messageId":"4931D23A.10402@gmail.com","threadId":"16523","inReplyTo":null,"subject":"gitweb doesn't work with bare repositories","fromName":"Evgeniy Ivanov","fromEmail":"lolkaantimat@gmail.com","sentAt":"2008-11-29T23:37:30Z","receivedAt":"2008-11-29T23:37:30Z","isPatch":false,"sender":{"key":"lolkaantimat@gmail.com","avatar":null},"body":"Hi,\nI have installed gitweb and can't make it work with bare repos.\nI have such config:\n$my_uri = \"http://mysite.org:8000\";\n$projectroot = \"/srv/www/gamekeeper/htdocs/projects\";\n\nIn projects I have created bare repo:\nmkdir some\ncd some.git\ngit --bare init\ncd /some_git_repo\ngit push /srv/www/gamekeeper/htdocs/projects master\n\nEverything fine, but when I click the link on some.git I don't have a\npage (just \"Error 404\").\n\nBut if I clone /some_git_repo with some in the projects, I have a link\n\"some/.git\" and it works fine.\n\nPermissions are ok, virtual host is ok since I get main page and have\naccess to cloned repo.\n\nWhat can be wrong?\n\n\n-- \nCheers, Evgeniy.\nKey fingerprint: F316 B5A1 F6D2 054F CD18 B74A 9540 0ABB 1FE5 67A3\n"},{"id":"96746","messageId":"20081130000115.GB20403@frsk.net","threadId":"16523","inReplyTo":"4931D23A.10402@gmail.com","subject":"Re: gitweb doesn't work with bare repositories","fromName":"Fredrik Skolmli","fromEmail":"fredrik@frsk.net","sentAt":"2008-11-30T00:01:16Z","receivedAt":"2008-11-30T00:01:16Z","isPatch":false,"sender":{"key":"fredrik@frsk.net","avatar":"https://avatars.githubusercontent.com/u/40261?v=4"},"body":"On Sun, Nov 30, 2008 at 02:37:30AM +0300, Evgeniy Ivanov wrote:\n> Hi,\n\nHi.\n\nJust checking now, but are the following corrections right?\n\n> In projects I have created bare repo:\n> mkdir some\n\nmkdir some.git\n\n> cd some.git\n> git --bare init\n> cd /some_git_repo\n> git push /srv/www/gamekeeper/htdocs/projects master\n\ngit push /srv/www/gamekeeper/htdocs/projects/some.git master\n\n> Permissions are ok, virtual host is ok since I get main page and have\n> access to cloned repo.\n\nYou're sure the user the webserver is running as has access to the repo as\nwell?\n\n- Fredrik\n\n-- \nKind regards,\nFredrik Skolmli\n"},{"id":"96747","messageId":"4931DD20.6020603@eaglescrag.net","threadId":"16523","inReplyTo":"20081130000115.GB20403@frsk.net","subject":"Re: gitweb doesn't work with bare repositories","fromName":"J.H.","fromEmail":"warthog19@eaglescrag.net","sentAt":"2008-11-30T00:24:00Z","receivedAt":"2008-11-30T00:24:00Z","isPatch":false,"sender":{"key":"warthog19@eaglescrag.net","avatar":null},"body":"As a note kernel.org uses, predominantly, bare repositories and it works \nfine there....\n\n- John 'Warthog9' Hawley\nChief Kernel.org Administrator\n\nFredrik Skolmli wrote:\n> On Sun, Nov 30, 2008 at 02:37:30AM +0300, Evgeniy Ivanov wrote:\n>   \n>> Hi,\n>>     \n>\n> Hi.\n>\n> Just checking now, but are the following corrections right?\n>\n>   \n>> In projects I have created bare repo:\n>> mkdir some\n>>     \n>\n> mkdir some.git\n>\n>   \n>> cd some.git\n>> git --bare init\n>> cd /some_git_repo\n>> git push /srv/www/gamekeeper/htdocs/projects master\n>>     \n>\n> git push /srv/www/gamekeeper/htdocs/projects/some.git master\n>\n>   \n>> Permissions are ok, virtual host is ok since I get main page and have\n>> access to cloned repo.\n>>     \n>\n> You're sure the user the webserver is running as has access to the repo as\n> well?\n>\n> - Fredrik\n>\n>   \n"},{"id":"96749","messageId":"m3bpvyjc0r.fsf@localhost.localdomain","threadId":"16523","inReplyTo":"4931D23A.10402@gmail.com","subject":"Re: gitweb doesn't work with bare repositories","fromName":"Jakub Narebski","fromEmail":"jnareb@gmail.com","sentAt":"2008-11-30T00:25:12Z","receivedAt":"2008-11-30T00:25:12Z","isPatch":false,"sender":{"key":"jnareb@gmail.com","avatar":"https://avatars.githubusercontent.com/u/2706?v=4"},"body":"Evgeniy Ivanov <lolkaantimat@gmail.com> writes:\n\n> I have installed gitweb and can't make it work with bare repos.\n\nActually gitweb treats all repositories as bare repositories,\nand doesn't touch at all neither index nor working area.\n\n> I have such config:\n> $my_uri = \"http://mysite.org:8000\";\n> $projectroot = \"/srv/www/gamekeeper/htdocs/projects\";\n> \n> In projects I have created bare repo:\n\nI assume that you have done:\n\n$ cd /srv/www/gamekeeper/htdocs/projects\n\n> $ mkdir some\n\nI assume that you meant here\n\n$ mkdir some.git\n\n> $ cd some.git\n> $ git --bare init\n> $ cd /some_git_repo\n> $ git push /srv/www/gamekeeper/htdocs/projects master\n\nI assume that you meant:\n\n$ git push /srv/www/gamekeeper/htdocs/projects/some.git master\n\n> \n> Everything fine, but when I click the link on some.git I don't have a\n> page (just \"Error 404\").\n\nWhat error? Please provide _exact_ error message.\n\nDoes the problem persists with the following corrections? Do you\nhave permissions set up correctly? How did you generate gitweb.cgi?\n\nSAA#1 (Standard admin answer #1): WORKSFORME.\n-- \nJakub Narebski\nPoland\nShadeHawk on #git\n"},{"id":"96785","messageId":"4932A8BE.9080302@gmail.com","threadId":"16523","inReplyTo":"4931D23A.10402@gmail.com","subject":"Re: gitweb doesn't work with bare repositories","fromName":"Evgeniy Ivanov","fromEmail":"lolkaantimat@gmail.com","sentAt":"2008-11-30T14:52:46Z","receivedAt":"2008-11-30T14:52:46Z","isPatch":false,"sender":{"key":"lolkaantimat@gmail.com","avatar":null},"body":"Thanks to everybody for answers. I'm not subscribed and saw them in the\nlist archive.\nAll things you have noticed are typos, sure I typed commands correctly.\nThe problem was caused by \"$feature{'pathinfo'}{'default'} = [1];\" in\nthe config. So the problem is solved now.\nGood luck :)\n\nEvgeniy Ivanov wrote:\n> Hi,\n> I have installed gitweb and can't make it work with bare repos.\n> I have such config:\n> $my_uri = \"http://mysite.org:8000\";\n> $projectroot = \"/srv/www/gamekeeper/htdocs/projects\";\n> \n> In projects I have created bare repo:\n> mkdir some\n> cd some.git\n> git --bare init\n> cd /some_git_repo\n> git push /srv/www/gamekeeper/htdocs/projects master\n> \n> Everything fine, but when I click the link on some.git I don't have a\n> page (just \"Error 404\").\n> \n> But if I clone /some_git_repo with some in the projects, I have a link\n> \"some/.git\" and it works fine.\n> \n> Permissions are ok, virtual host is ok since I get main page and have\n> access to cloned repo.\n> \n> What can be wrong?\n> \n> \n\n\n\n-- \nCheers, Evgeniy.\nKey fingerprint: F316 B5A1 F6D2 054F CD18 B74A 9540 0ABB 1FE5 67A3\n"}]}