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

Issue: "Could not access submodule" error when pulling recursively with Git 2.22.0

From
AMAleksey Mikhaylov <almikhailov@plesk.com>
Date
Oct 23, 2019, 07:22 UTC
Message-ID
<AM5PR0902MB1953988602B657C3D0BB9B17A36B0@AM5PR0902MB1953.eurprd09.prod.outlook.com>
PROBLEM DESCRIPTION

"Could not access submodule" error when pulling recursively with Git 2.22.0. This issue causes if there is submodule in submodule.

At first, we reported this problem for Git for Windows: https://github.com/git-for-windows/git/issues/2361 But we received the answer that it was reproduced on Linux too.

Also, the same problem is described here: https://gitlab.com/gitlab-org/gitlab/issues/27287

STEPS TO REPRODUCE

Please use my simple test repository to reproduce the problem: https://github.com/agmikhailov/example2361.git

It is just an empty repository with one submodule (https://github.com/agmikhailov/example2361M1.git) and one submodule of submodule (https://github.com/agmikhailov/example2361M2.git):

git clone https://github.com/agmikhailov/example2361.git cd example2361/ git submodule init git submodule update git pull --recurse-submodules=true

ACTUAL RESULT
"git --recurse-submodules=true" command fails with message "Could not access submodule":

$ git --recurse-submodules=true Fetching submodule example2361M1 Could not access submodule 'example2361M2'

EXPECTED RESULT
All submodules are successfully updated by "git --recurse-submodules=true" command.
ADDITIONAL INFORMATION

Git version 2.20.1 does not have this problem. So we had to downgrade Git to work with submodules.

Best regards, -- Aleksey

Next: SZEDER Gábor
Message 1 of 4 in “Issue: "Could not access submodule" error when pulling recursively with Git 2.22.0”
  1. Aleksey MikhaylovOct 23, 2019
  2. SZEDER GáborOct 23, 2019
  3. Johannes SchindelinOct 25, 2019
  4. Philippe BlainJan 1, 2021

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.