Skip to content

Could not access submodule when pulling recursively with git 2.22.0.windows.1 #2361

Closed
@agmikhailov

Description

@agmikhailov
  • I was not able to find an open or closed issue matching what I'm seeing

Setup

  • Which version of Git for Windows are you using? Is it 32-bit or 64-bit?
$ git --version --build-options

D:\Git\TestBranch3>git --version --build-options
git version 2.22.0.windows.1
cpu: x86_64
built from commit: d003d728ffa6c0006da875ec6318d3f6b28a4ddb
sizeof-long: 4
sizeof-size_t: 8
  • Which version of Windows are you running? Vista, 7, 8, 10? Is it 32-bit or 64-bit?
$ cmd.exe /c ver

D:\Git\TestBranch3>cmd.exe /c ver

Microsoft Windows [Version 10.0.15063]
  • What options did you set as part of the installation? Or did you choose the
    defaults?
# One of the following:
> type "C:\Program Files\Git\etc\install-options.txt"
> type "C:\Program Files (x86)\Git\etc\install-options.txt"
> type "%USERPROFILE%\AppData\Local\Programs\Git\etc\install-options.txt"
$ cat /etc/install-options.txt

D:\Git\TestBranch3>type "C:\Program Files\Git\etc\install-options.txt"
Editor Option: VIM
Custom Editor Path:
Path Option: Cmd
SSH Option: OpenSSH
CURL Option: OpenSSL
CRLF Option: CRLFAlways
Bash Terminal Option: MinTTY
Performance Tweaks FSCache: Enabled
Use Credential Manager: Disabled
Enable Symlinks: Disabled
Enable Builtin Interactive Add: Disabled
  • Any other interesting things about your environment that might be related
    to the issue you're seeing?

This issue causes if there is submodule in submodule.

Workaround: downgrade git to version 2.20.1.

The same issue was described here:
https://gitlab.com/gitlab-org/gitlab/issues/27287

Details

  • Which terminal/shell are you running Git from? e.g Bash/CMD/PowerShell/other

CMD

git.exe clone --progress -v "ssh://git@git.xxxxx.xxx:7999/xxxxxx/xxxxx.git" "D:\Git\TestBranch"
cd TestBranch
git submodule init
git submodule update
git pull --recurse-submodules=true
  • What did you expect to occur after running these commands?

Successful update.

  • What actually happened instead?

D:\Git\TestBranch>git pull --recurse-submodules=true
remote: Counting objects: 1, done.
remote: Total 1 (delta 0), reused 0 (delta 0)
Unpacking objects: 100% (1/1), done.
From ssh://git.xxxxx.xxx:7999/xxxx/xxxx
078bad1772..e02f419139 master -> origin/master
Fetching submodule xxxx/xxxx/xxxx
Could not access submodule 'xxxxx'Could not access submodule 'xxxxx'Fetching submodule xxxxxx/xxxxx/xxxxxxx/xxxxxx/xxxxx
Fetching submodule xxxxxx/xxxxx/xxxxx/xxxxxx
Could not access submodule 'xxxxx'Could not access submodule 'xxxxx'Fetching submodule xxxxx/xxxxxx/xxxx
Fetching submodule xxxxx/xxxxx/xxxxx/xxxxx
Could not access submodule 'xxxxx'Could not access submodule 'xxxxxx'

  • If the problem was occurring with a specific repository, can you provide the
    URL to that repository to help us with testing?

No, it is our inner repository.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions