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

Re: Local Config File: Submodule initialization looks broken with the --recurse-submodules option when cloning a repository

From
RRon <ronazek@protonmail.com>
Date
Oct 15, 2019, 00:39 UTC
Message-ID
<XqdveI1_zW78uGKUxGnJanJ87mg_lJaw9tKylbfgadEeKlVUlOx5juZWpXC0OPDC4lD60mbRTHDm64HqP1Jxw-A9byDF9le2YfuECuatGQk=@protonmail.com>
In-Reply-To
<ZkLbpInDB0A-uWL3lVcy67PplIX56Pr7qakiHnXnP4OInRFs20ZPH3wDZl-LNoCNRv-_4HlTwa9LLkrWjdVFPshEi-JXVAhHwsLdp2ivJew=@protonmail.com>
Show 11 quoted lines
> I've got someone to test this with the latest 2.23.0 version on archlinux.
>
> It is still happening:
>
> git clone --depth=1 --recurse-submodules --origin upstream https://github.com/git-for-windows/git;
> git -C git config --get submodule.active
> expected true, got .
>
> Anything more I need to add to help this get solved?
>
> Sent with ProtonMail Secure Email.

This appears to have been a false positive, there are 2 different kind of "active" parameters in the config file and this is, according to the docs, expected behavior. I'm not sure if the other tester wrote the last line himself or did git wrote that for him, because on GFW that command only outputs the value if there is one.

I cannot reproduce the error anymore that I thought was happening because of this, it never caused a problem when cloning or when applying submodule later, it must have been a coincidence at the time.

The effect is "equivalent" as the docs say, whether doing "--recurse-submodule" (without specifying pathspec) at clone time or doing a normal clone and running "git submodule update --init --recursive" afterward, but technically the config file will not be the same.

Sorry for the inconvenience.
Previous: Ron
Message 3 of 3 in “Local Config File: Submodule initialization looks broken with the --recurse-submodules option when cloning a repository”
  1. ronApr 11, 2019
  2. RonOct 14, 2019
  3. RonOct 15, 2019

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.