Open
Description
Existing issues matching what you're seeing
- I was not able to find an open or closed issue matching what I'm seeing
Git for Windows version
v2.50.0-rc2.windows.1
Windows version
Windows 10
Windows CPU architecture
x86_64 (64-bit)
Additional Windows version information
Microsoft Windows [Version 10.0.19045.5965]
Options set during installation
$ cat /etc/install-options.txt
Editor Option: VIM
Custom Editor Path:
Default Branch Option: main
Path Option: Cmd
SSH Option: OpenSSH
Tortoise Option: false
CURL Option: WinSSL
CRLF Option: CRLFCommitAsIs
Bash Terminal Option: MinTTY
Git Pull Behavior Option: Rebase
Use Credential Manager: Enabled
Performance Tweaks FSCache: Enabled
Enable Symlinks: Disabled
Enable FSMonitor: Disabled
Other interesting things
If I run git status
on my H: drive it fails because the parent directory is not readable:
$ net use
New connections will be remembered.
Status Local Remote Network
-------------------------------------------------------------------------------
OK H: \\filesever.example.com\home\username
Microsoft Windows Network
...
$
$ ls '\\filesever.example.com\home\username' | wc -l
27
$ ls '\\filesever.example.com\home' | wc -l
ls: cannot open directory '\\filesever.example.com\home': Permission denied
0
$ cd /h
$ ls | wc -l
27
$ git status
fatal: failed to stat ' //filesever.example.com/home/': Permission denied
$
So something about git's way of accessing the filesystem is different from other programs (like ls
) and causes it to fail under this scenario.
Tested on both Windows 10 Pro 22H2 and Windows 11 Pro 22H2 with all updates as of today installed with version 2.49.0.windows.1.
git config --global --add safe.directory /h
did not help.
Updating to v2.50.0-rc2.windows.1 did not help. I also downgraded to an older version, v2.42.0.windows.1, with the same result.
Terminal/shell
bash and powershell
Commands that trigger the issue
git status
Expected behaviour
On branch ...
...
or
fatal: not a git repository (or any of the parent directories): .git
Actual behaviour
fatal: failed to stat ' //filesever.example.com/home/': Permission denied
Repository
No response