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

Re: Gitweb and submodules

From
Jakub Narebski <jnareb@gmail.com>
Date
Jul 28, 2007, 10:29 UTC
Message-ID
<200707281229.17351.jnareb@gmail.com>
In-Reply-To
<20070727123229.GB31114MdfPADPa@greensroom.kotnet.org>
On Fri, 27 July 2007, Sven Verdoolaege wrote
> On Fri, Jul 27, 2007 at 01:22:49PM +0200, Jakub Narebski wrote:
Show 6 quoted lines
> > But for that I need a question answered: how to find GIT_DIR of 
> > repository which contains submodule objects? We have to assume in 
> > gitweb that repositories are bare...
> 
> You'll have to add a configuration variable for that.
> The submodule may not even be on the same server.

What do you think about using "submodule.$name.gitdir" configuration variable for that? It has to be configuration variable because the location of repository which has submodule objects doesn't change when checking out (or rewinding) to different commit in supermodule.

As a special case I'd use 'no value' to note that submodule objects are contained in the supermodule repository.

-- 
Jakub Narebski
Poland
Previous: Sven VerdoolaegeNext: Sven Verdoolaege
Message 3 of 9 in “Gitweb and submodules”
  1. Jakub NarebskiJul 27, 2007
  2. Sven VerdoolaegeJul 27, 2007
  3. Jakub NarebskiJul 28, 2007
  4. Sven VerdoolaegeJul 28, 2007
  5. Jakub NarebskiJul 28, 2007
  6. Sven VerdoolaegeJul 29, 2007
  7. Jakub NarebskiJul 30, 2007
  8. Sven VerdoolaegeJul 30, 2007
  9. Lars HjemliJul 27, 2007

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.