vscode icon indicating copy to clipboard operation
vscode copied to clipboard

git: Fix discarding untracked files on Windows subst drives

Open Parasaran-Python opened this issue 7 months ago • 2 comments

Handle virtual drive paths correctly when discarding untracked files by:

  • Using the repository's rootRealPath to convert subst drive paths to real paths

  • Adding fallback to 'git clean' when filesystem deletion fails

  • Adding tests to verify path transformation logic works correctly

Fixes #248369

Parasaran-Python avatar May 09 '25 19:05 Parasaran-Python

Hello @lszomoru requesting a review.

Parasaran-Python avatar May 12 '25 15:05 Parasaran-Python

Hi @lszomoru requesting for a review. 🙂

Parasaran-Python avatar May 19 '25 14:05 Parasaran-Python