Open
Description
Setup
- Which version of Git for Windows are you using? Is it 32-bit or 64-bit?
git version 2.35.0.windows.1
cpu: x86_64
built from commit: 853373155dce195a91e6e41a58c8b8e5c5a94652
sizeof-long: 4
sizeof-size_t: 8
shell-path: /bin/sh
feature: fsmonitor--daemon
- Which version of Windows are you running? Vista, 7, 8, 10? Is it 32-bit or 64-bit?
$ cmd.exe /c ver
Microsoft Windows [Version 10.0.17763.2458]
- What options did you set as part of the installation? Or did you choose the
defaults?
I have used the scoop installation method.
# Install Python and Git.
RUN powershell.exe -ExecutionPolicy RemoteSigned `
iex (new-object net.webclient).downloadstring('https://get.scoop.sh'); `
scoop install python git
- Any other interesting things about your environment that might be related
to the issue you're seeing?
Windows host: Windows 10 64-bit, Windows image in Docker:
# Use the latest Windows Server Core image with .NET Framework 4.8.
FROM mcr.microsoft.com/dotnet/framework/sdk:4.8-windowsservercore-ltsc2019
Details
- Which terminal/shell are you running Git from? e.g Bash/CMD/PowerShell/other
CMD and PowerShell
- What commands did you run to trigger this issue? If you can provide a
Minimal, Complete, and Verifiable example
this will help us understand the issue.
git submodule update --init
- What did you expect to occur after running these commands?
Update of the submodules.
- What actually happened instead?
/mingw64/libexec/git-core/git-sh-setup: line 365: cd: .git: Not a directory
Unable to determine absolute path of git directory
- If the problem was occurring with a specific repository, can you provide the
URL to that repository to help us with testing?
The problem is that inside the mounted volume git cannot properly execute cd
command. I have already asked this question on Stackoverflow but without an answer.