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

gitweb doesn't work with bare repositories

From
EIEvgeniy Ivanov <lolkaantimat@gmail.com>
Date
Nov 29, 2008, 23:37 UTC
Message-ID
<4931D23A.10402@gmail.com>

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
Next: Fredrik Skolmli
Message 1 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.