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

Re: Gitweb: Scan dir for repos & show these other specified repos

From
Jakub Narebski <jnareb@gmail.com>
Date
Mar 1, 2010, 19:55 UTC
Message-ID
<m33a0jn7ft.fsf@localhost.localdomain>
In-Reply-To
<4B8C1267.2050301@gmail.com>
"Mike.lifeguard" <mike.lifeguard@gmail.com> writes:
Show 5 quoted lines
> Is it possible to have gitweb show all repositories in /path/to/wherever
> and also show some other repositories at particular locations like
> /home/user/git/repo1 and /home/user2/git/repo2 ? Or better yet, scan
> multiple dirs? Currently I can only see how to do one or the other
> within a single gitweb installation. I suppose I could run two of them...

It is not possible with $projects_list being directory (or undefined, which means to take $projectroot), but I think it is possible with $projects_list being a file.

You would have to set $projectroot to common prefix (it might be empty, i.e. '' if there is no common prefix), then list there all repositories, relative to $projectroot. See gitweb/README and gitweb/INSTALL, and comments in gitweb.perl for details on file format.

P.S. It probably be a good idea to have something like mod_userdir, but gitweb currently doesn't support something like that.

P.P.S. Alternate solution would be to try to work around it with automount / autofs or something like that.

-- 
Jakub Narebski
Poland
ShadeHawk on #git
Previous: Mike.lifeguardNext: Sylvain Rabot
Message 2 of 8 in “Gitweb: Scan dir for repos & show these other specified repos”
  1. Mike.lifeguardMar 1, 2010
  2. Jakub NarebskiMar 1, 2010
  3. Sylvain RabotMar 1, 2010
  4. Jakub NarebskiMar 1, 2010
  5. Sylvain RabotMar 1, 2010
  6. gitweb multiple project roots documentationSylvain Rabot, Mar 2, 2010
  7. Jakub NarebskiMar 2, 2010
  8. gitweb readme fixed regarding per user project root repositorySylvain Rabot, Mar 10, 2010

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.