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

Re: [PATCH] gitweb: export-ok option

From
Jakub Narebski <jnareb@gmail.com>
Date
Sep 16, 2006, 19:44 UTC
Message-ID
<eehk5p$ipm$2@sea.gmane.org>
In-Reply-To
<20060916192750.GA27008@moooo.ath.cx>
Matthias Lederhofer wrote:
Show 11 quoted lines
> Similar to git-daemon checking for git-daemon-export-ok this
> introduces an optional check before showing a repository in gitweb.
> 
> I also changed the 'No such directory' error message to 'No such
> project' because the user visiting my gitweb should not know what
> directories I have in the project root directory.
> 
> undef $project; is used to prevent displaying the description.
> ---
> Perhaps there should be another option which allows only those
> repositories to be shown which are in $projects_list.

I don't know what this is for (well, except replacing 'No such directory' error message by 'No such project'). If you want only some of repositories to be present in gitweb, you simply use $projects_list _file_ (e.g. using new "project_index" action to generate it) and edit it to contain only the repositories you want to be shown in gitweb.

Unless of course the person who hosts gitweb, and the person who owns repository are uncommunicado, and you want the power of deciding if repository is present in gitweb or not to be placed in the hands of repository owner. Still, gitweb must be configured for this.

-- 
Jakub Narebski
Warsaw, Poland
ShadeHawk on #git
Previous: Junio C HamanoNext: Matthias Lederhofer
Message 5 of 15 in “gitweb: export-ok option”
  1. gitweb: export-ok optionMatthias Lederhofer, Sep 16, 2006
  2. Jakub NarebskiSep 16, 2006
  3. Matthias LederhoferSep 16, 2006
  4. Junio C HamanoSep 16, 2006
  5. Jakub NarebskiSep 16, 2006
  6. gitweb: option 'strict export'Matthias Lederhofer, Sep 16, 2006
  7. gitweb: do not use 'No such directory' error messageMatthias Lederhofer, Sep 16, 2006
  8. gitweb: export optionsMatthias Lederhofer, Sep 16, 2006
  9. Junio C HamanoSep 17, 2006
  10. Matthias LederhoferSep 17, 2006
  11. Junio C HamanoSep 17, 2006
  12. gitweb: fix warnings in PATH_INFO code and add export_ok/strict_exportMatthias Lederhofer, Sep 17, 2006
  13. Junio C HamanoSep 17, 2006
  14. Jakub NarebskiSep 17, 2006
  15. Junio C HamanoSep 17, 2006

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.