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

Re: [BUG] `git submodule update --init --recursive` stores gitdir in full path into `.git` of nested submodules

From
Stefan Beller <sbeller@google.com>
Date
Mar 30, 2016, 16:05 UTC
Message-ID
<CAGZ79kaa2uBmRZ_OPG9hVkrc29uj8Lx9b-6fgbcDNE0OGvJ+cg@mail.gmail.com>
In-Reply-To
<F89ED33B-E33D-4693-8559-4255727B78B8@gmail.com>
On Wed, Mar 30, 2016 at 2:03 AM, Norio Nomura <norio.nomura@gmail.com> wrote:
> Hi,
>
> `git submodule update --init --recursive` stores `gitdir` in full path into `.git` of nested submodules.
> So, working directory is not portable to another directory.

Are you reporting a regression bug? (Is that a new thing or has it always been that way and you just discover that it is unfortunate?) Which versions did you test with?

Show 12 quoted lines
>
> On following example, `Carthage/Checkouts/Quick/Externals/Nimble/` is nested submodule and `Carthage/Checkouts/Quick/Externals/Nimble/.git` contains full path.
> https://gist.github.com/norio-nomura/17ce4bdf0151185e77d9b1fcfb5a469d
>
> Thanks,
> --
> Norio Nomura @norio_nomura
>
> --
> To unsubscribe from this list: send the line "unsubscribe git" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous: Norio NomuraNext: Stefan Beller
Message 2 of 4 in “[BUG] `git submodule update --init --recursive` stores gitdir in full path into `.git` of nested submodules”
  1. Norio NomuraMar 30, 2016
  2. Stefan BellerMar 30, 2016
  3. Stefan BellerMar 30, 2016
  4. Junio C HamanoMar 30, 2016

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.