WSL: Git fatal error when cloning repo on mounted drive
Windows Version
Microsoft Windows [Version 10.0.22631.3593]
WSL Version
2.1.5.0
Are you using WSL 1 or WSL 2?
- WSL 2
- WSL 1
Kernel Version
5.15.146.1-microsoft-standard-WSL2
Distro Version
Ubuntu 22.04.4 LTS
Other Software
git 2.34.1
Repro Steps
- Setup a dev drive on the Windows filesystem.
- Start up WSL2 with Terminal.
- Navigate to the mounted drive.
git clonean ADO repo.- Directory gets created and a
.gitsubdirectory is created and then the clone operation halts.
Expected Behavior
Expected clone to finish and let me work with files on the drive.
Actual Behavior
Clone operation failed after creating the .git subdirectory
git clone https://REDACTED@dev.azure.com/ORG/PROJECT/_git/REPO
Cloning into 'REPO'...
fatal: unknown error occurred while reading the configuration files
- When I look at the
.gitdirectory this is what I see:
ls: cannot access 'config': No such file or directory
ls: cannot access 'HEAD': No such file or directory
total 0
drwxrwxrwx 1 me me 4096 Jun 7 11:59 ./
drwxrwxrwx 1 me me 4096 Jun 7 11:59 ../
-????????? ? ? ? ? ? HEAD
-????????? ? ? ? ? ? config
I also got a notification from WSL saying that performing I/O operations can be slow.
Diagnostic Logs
No response
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 16 (1 by maintainers)
Confirmation that updating the Microsoft Defender for Endpoint plug-in for Windows Subsystem for Linux (WSL) to version
>= 1.24.605.1solves the issue.Thanks everyone 👍
@msft-mw, we actually suspect this is related to a recent rollout/update of
https://learn.microsoft.com/en-us/defender-endpoint/mde-plugin-wslAppears to be similar to to https://github.com/microsoft/WSL/issues/11619 but repros on non-insider build of 23H2.