Git Source Control shows modified files in WSL2 workspace while git status shows clean repository
- Dominant language
- TypeScript
- Stars
- 193k
- Forks
- 42.4k
- PR merge metrics
- PR metrics pending
Description
Does this issue occur when all extensions are disabled?: Not checked
- VS Code Version: [1.133.0]
- OS Version: Windows 10 + WSL2 Ubuntu 24.04
Steps to Reproduce:
1. Otvori WSL2 folder u VS Code: `\\wsl.localhost\Ubuntu-24.04\home\kule\projects\pracenje-propisa-app`
2. Otvori Source Control view (Ctrl+Shift+G)
3. Vidi 6+ fajlova označenih kao modifikovani (M):
- vrsta-propisa.json
- vrste-akta.override.json
- board.html
- dnevna-projekta.sh
- odredjena-paths.ts
- tabela-mresa.ts
- transitterate.ts
4. Otvori WSL Terminal u VS Code i pokreni: `git status --short`
5. Terminal pokazuje: [nema izlaza] - repo je čist
6. Ponovi sa: `git diff --stat` - nema izlaza
7. Otvori drugi terminal (PyCharm/iTerm2 na WSL2) i pokreni `git status` - čist
8. VS Code Source Control i dalje prikazuje iste fajlove kao modifikovane
Expected Behavior:
Source Control panel bi trebao prikazati samo stvarno modifikovane fajlove koji se pojavljuju u `git diff`.
Actual Behavior:
VS Code prikazuje fajlove kao modifikovane, dok `git status` u terminalu pokazuje da nema izmjena.
Additional Context:
- Problem je samo u VS Code Source Control view-u
- Terminal u VS Code, PyCharm terminal, i WSL2 bash svi pokazuju repo kao čist
- Pokušao sam: Git: Close Repository, Developer: Reload Window, File → Close Folder → reopen
- Problem persists nakon svih pokušaja
Contributor guide
Assessment
This issue has not been assessed yet.