git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: gitweb doesn't work with bare repositories

From
Jakub Narebski <jnareb@gmail.com>
Date
Nov 30, 2008, 00:25 UTC
Message-ID
<m3bpvyjc0r.fsf@localhost.localdomain>
In-Reply-To
<4931D23A.10402@gmail.com>
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.

Show 5 quoted 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
> $ 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
Previous: J.H.Next: Evgeniy Ivanov
Message 4 of 5 in “gitweb doesn't work with bare repositories”
  1. Evgeniy IvanovNov 29, 2008
  2. Fredrik SkolmliNov 30, 2008
  3. J.H.Nov 30, 2008
  4. Jakub NarebskiNov 30, 2008
  5. Evgeniy IvanovNov 30, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.