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

Bug: submodules of submodules use absolute gitdir in .git file (instead of relative)

From
RSRobert Siemer <robert.siemer@rohde-schwarz.com>
Date
Jun 27, 2017, 13:16 UTC
Message-ID
<0d924a0671b642d2b8ba79af8d4fa0d7@rohde-schwarz.com>
Hello everyone,
$ git submodule foreach cat .git
...shows that the gitdir registered in the .git file of submodules is relative. But if you run 
$ git submodule foreach --recursive cat .git
...shows that submodules of submodules (if you have any) have an absolute gitdir starting with a slash.
1) Can you confirm that behavior?
2) Am I right that this is a bug (at least because of inconsistency)?

Regards, Robert

Next: Junio C Hamano
Message 1 of 4 in “Bug: submodules of submodules use absolute gitdir in .git file (instead of relative)”
  1. Robert SiemerJun 27, 2017
  2. Junio C HamanoJun 27, 2017
  3. Stefan BellerJun 27, 2017
  4. Robert SiemerJun 28, 2017

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.