Skip to content

Git - discard changes of a new untracked file fails when using a subst drive  #248369

@DavidFi1

Description

@DavidFi1

Does this issue occur when all extensions are disabled?: Yes

  • VS Code Version: 1.99.3
  • OS Version: Windows 11 Enterprise

Steps to Reproduce:

  1. clone a git repository
  2. subst x: repository path
  3. open x: in vscode
  4. make a new file
  5. in the source control - discard changes of this file
  6. accept the file "move to recycle bin"
  7. see the error:
    2025-05-08 10:14:37.351 [info] > git config --get commit.template [372ms]
    2025-05-08 10:14:37.381 [info] > git for-each-ref --format=%(refname)%00%(upstream:short)%00%(objectname)%00%(upstream:track)%00%(upstream:remotename)%00%(upstream:remoteref) --ignore-case refs/heads/use360deg refs/remotes/use360deg [384ms]
    2025-05-08 10:14:37.639 [info] > git for-each-ref --sort -committerdate --format %(refname)%00%(objectname)%00%(*objectname) [225ms]
    2025-05-08 10:14:37.645 [info] > git status -z -uall [248ms]

Activity

added
gitGIT issues
bugIssue identified by VS Code Team member as probable bug
help wantedIssues identified as good community contribution opportunities
on May 8, 2025
changed the title [-]win11 subst & vscode - source control - discard changes of a new untracked file - fails[/-] [+]Git - discard changes of a new untracked file fails when using a subst drive [/+] on May 8, 2025
added a commit that references this issue on May 9, 2025
a0c7aea
added 8 commits that reference this issue on May 10, 2025

fixes microsoft#248369: Fix discarding untracked files on Windows sub…

dbc0213

fixes microsoft#248369: Fix discarding untracked files on Windows sub…

83d63a1

fixes microsoft#248369: Fix discarding untracked files on Windows sub…

31612a1

fixes microsoft#248369: Fix discarding untracked files on Windows sub…

5aebf09

fixes microsoft#248369: Fix discarding untracked files on Windows sub…

06c1b71

fixes microsoft#248369: Fix discarding untracked files on Windows sub…

eca255a

fixes microsoft#248369: Fix discarding untracked files on Windows sub…

1b8f2b9

fixes microsoft#248369: Fix discarding untracked files on Windows sub…

c980fbc
added a commit that references this issue on Jun 8, 2025

fixes microsoft#248369: Fix discarding untracked files on Windows sub…

31b9f48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable buggitGIT issueshelp wantedIssues identified as good community contribution opportunities

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

    Development

    Participants

    @lszomoru@DavidFi1

    Issue actions

      Git - discard changes of a new untracked file fails when using a subst drive · Issue #248369 · microsoft/vscode