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

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

From
Stefan Beller <sbeller@google.com>
Date
Jun 27, 2017, 17:35 UTC
Message-ID
<CAGZ79kZmV9Aufrsmf1iohhP5qHzA4AZ3DDv8sn1GMaCZ+SbV5Q@mail.gmail.com>
In-Reply-To
<xmqqr2y531xv.fsf@gitster.mtv.corp.google.com>
On Tue, Jun 27, 2017 at 8:06 AM, Junio C Hamano <gitster@pobox.com> wrote:
Show 17 quoted lines
> Robert Siemer <Robert.Siemer@rohde-schwarz.com> writes:
>
>> 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?
>
> Nobody can without knowing which version of Git you are using.  I
> suspect that we had discussed and addressed something related to
> nested submodule's "gitdir" pointer in not-so-distant past.

Yeah there was a period in time where we had this bug. (Or is it a different bug?) See 90c0011619 (submodule: use absolute path for computing relative path connecting, 2016-12-08), which is included in 2.12.

Previous: Junio C HamanoNext: Robert Siemer
Message 3 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.