git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* gitweb doesn't work with bare repositories
@ 2008-11-29 23:37 Evgeniy Ivanov
  2008-11-30  0:01 ` Fredrik Skolmli
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Evgeniy Ivanov @ 2008-11-29 23:37 UTC (permalink / raw
  To: git; +Cc: lolkaantimat

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?


-- 
Cheers, Evgeniy.
Key fingerprint: F316 B5A1 F6D2 054F CD18 B74A 9540 0ABB 1FE5 67A3

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: gitweb doesn't work with bare repositories
  2008-11-29 23:37 gitweb doesn't work with bare repositories Evgeniy Ivanov
@ 2008-11-30  0:01 ` Fredrik Skolmli
  2008-11-30  0:24   ` J.H.
  2008-11-30  0:25 ` Jakub Narebski
  2008-11-30 14:52 ` Evgeniy Ivanov
  2 siblings, 1 reply; 5+ messages in thread
From: Fredrik Skolmli @ 2008-11-30  0:01 UTC (permalink / raw
  To: Evgeniy Ivanov; +Cc: git

On Sun, Nov 30, 2008 at 02:37:30AM +0300, Evgeniy Ivanov wrote:
> Hi,

Hi.

Just checking now, but are the following corrections right?

> In projects I have created bare repo:
> mkdir some

mkdir some.git

> cd some.git
> git --bare init
> cd /some_git_repo
> git push /srv/www/gamekeeper/htdocs/projects master

git push /srv/www/gamekeeper/htdocs/projects/some.git master

> 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

-- 
Kind regards,
Fredrik Skolmli

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: gitweb doesn't work with bare repositories
  2008-11-30  0:01 ` Fredrik Skolmli
@ 2008-11-30  0:24   ` J.H.
  0 siblings, 0 replies; 5+ messages in thread
From: J.H. @ 2008-11-30  0:24 UTC (permalink / raw
  To: Fredrik Skolmli; +Cc: Evgeniy Ivanov, git

As a note kernel.org uses, predominantly, bare repositories and it works 
fine there....

- John 'Warthog9' Hawley
Chief Kernel.org Administrator

Fredrik Skolmli wrote:
> On Sun, Nov 30, 2008 at 02:37:30AM +0300, Evgeniy Ivanov wrote:
>   
>> Hi,
>>     
>
> Hi.
>
> Just checking now, but are the following corrections right?
>
>   
>> In projects I have created bare repo:
>> mkdir some
>>     
>
> mkdir some.git
>
>   
>> cd some.git
>> git --bare init
>> cd /some_git_repo
>> git push /srv/www/gamekeeper/htdocs/projects master
>>     
>
> git push /srv/www/gamekeeper/htdocs/projects/some.git master
>
>   
>> 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
>
>   

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: gitweb doesn't work with bare repositories
  2008-11-29 23:37 gitweb doesn't work with bare repositories Evgeniy Ivanov
  2008-11-30  0:01 ` Fredrik Skolmli
@ 2008-11-30  0:25 ` Jakub Narebski
  2008-11-30 14:52 ` Evgeniy Ivanov
  2 siblings, 0 replies; 5+ messages in thread
From: Jakub Narebski @ 2008-11-30  0:25 UTC (permalink / raw
  To: lolkaantimat; +Cc: git

Evgeniy Ivanov <lolkaantimat@gmail.com> writes:

> 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.

> 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

> $ mkdir some

I assume that you meant here

$ mkdir some.git

> $ 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

> 
> 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.
-- 
Jakub Narebski
Poland
ShadeHawk on #git

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: gitweb doesn't work with bare repositories
  2008-11-29 23:37 gitweb doesn't work with bare repositories Evgeniy Ivanov
  2008-11-30  0:01 ` Fredrik Skolmli
  2008-11-30  0:25 ` Jakub Narebski
@ 2008-11-30 14:52 ` Evgeniy Ivanov
  2 siblings, 0 replies; 5+ messages in thread
From: Evgeniy Ivanov @ 2008-11-30 14:52 UTC (permalink / raw
  To: git

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 :)

Evgeniy Ivanov wrote:
> 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?
> 
> 



-- 
Cheers, Evgeniy.
Key fingerprint: F316 B5A1 F6D2 054F CD18 B74A 9540 0ABB 1FE5 67A3

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2008-11-30 14:55 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-29 23:37 gitweb doesn't work with bare repositories Evgeniy Ivanov
2008-11-30  0:01 ` Fredrik Skolmli
2008-11-30  0:24   ` J.H.
2008-11-30  0:25 ` Jakub Narebski
2008-11-30 14:52 ` Evgeniy Ivanov

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).