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

Re: bare init and gitweb

From
Jakub Narebski <jnareb@gmail.com>
Date
Jun 17, 2008, 20:27 UTC
Message-ID
<m3bq1zolh6.fsf@localhost.localdomain>
In-Reply-To
<g38t49$lgr$3@ger.gmane.org>
Martin Röhricht <public@felicis.org> writes:
> in order to use git for some projects via WebDAV I followed the
> instructions given in
> http://www.kernel.org/pub/software/scm/git/docs/howto/setup-git-server-over-http.txt
[...]
Show 16 quoted lines
> Whenever I clone the server's repository somewhere else, I get the
> README file as expected. But when I use gitweb to show me the contents
> of the repository, all I get is this:
> 
> -------------------------8<------------------------
> projects /
> 
> 403 Forbidden - No projects found
> -------------------------8<------------------------
> 
> The projectroot variable within /etc/gitweb.conf points to my
> ~/gitrepo.git, and whenever I use "git init", add and commit some
> files locally on the server I see the contents as expected by using
> gitweb, but never by using a repository created with "git --bare init".
> 
> Can someone help me out? I would really appreciate any help.

The $projectroot variable should point to the _common root_ of all projects, in your case it could be one directory up your repository, for example

  our $projectroot = /home/nick
not
  our $projectroot = /home/nick/gitrepo.git
(and '~' expansion would not work).
gitweb/README and gitweb/INSTALL should explain it in more detail.
The documentation you mentioned IIUC is for people who know how to
setup gitweb already
  http://repo.or.cz/w/git.git?a=blob;f=gitweb/INSTALL;hb=HEAD
  http://repo.or.cz/w/git.git?a=blob;f=gitweb/README;hb=HEAD
-- 
Jakub Narebski
Poland
ShadeHawk on #git
Previous: Martin RöhrichtNext: Martin Röhricht
Message 2 of 3 in “bare init and gitweb”
  1. Martin RöhrichtJun 17, 2008
  2. Jakub NarebskiJun 17, 2008
  3. Martin RöhrichtJun 18, 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.