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

Re: gitweb $export_ok question

From
Jakub Narebski <jnareb@gmail.com>
Date
Dec 31, 2008, 09:00 UTC
Message-ID
<200812311000.25818.jnareb@gmail.com>
In-Reply-To
<6db6bed70812302037w54fe5640of234cd611f5ab45e@mail.gmail.com>
Thomas Amsler wrote:
Show 15 quoted lines
> Thank you for your information.
> 
> I have just tried that but the repository doesn't show up in gitweb
> 
> - added to /etc/gitweb.conf
> -- $export_ok = "gitweb-export-ok"
> - touched the "gitweb-export-ok" file in the repository
> -- touch /path-to-repo/repository/authz.git/gitweb-export-ok
> 
> Then gitweb reports:
> 
> 404 - No projects found
> 
> Does the gitweb-export-ok file need to be part of  the repo so that it is
> tracked?

No, gitweb-export-ok file has to be in $GIT_DIR (like description file), not part of repo.

As to "No projects found" error: what is your $projectroot? Is it either "/path-to-repo/repository" or "/path-to-repo"? Is repository readable and searchable for the web server user (does it have correct permissions)?

-- 
Jakub Narebski
Poland
Previous: Jakub NarebskiNext: Thomas Amsler
Message 4 of 7 in “gitweb $export_ok question”
  1. Thomas AmslerDec 29, 2008
  2. Jakub NarebskiDec 30, 2008
  3. Jakub NarebskiDec 30, 2008
  4. Jakub NarebskiDec 31, 2008
  5. Thomas AmslerDec 31, 2008
  6. Jakub NarebskiJan 1, 2009
  7. gitweb: Document that gitweb deals with bare repositoriesJakub Narebski, Jan 3, 2009

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.