Skip to content

Git: File events don't work if .git is outside the opened folder #41085

@warpdesign

Description

@warpdesign
  • VSCode Version: latest insider
  • OS Version: Windows 10 x64

The following bug only seems to happen when two folders belonging to the same parent git repository are added to the workspace. For example, here myApp is the repository:

myApp/
myApp/.git
myApp/foo
myApp/foo/test.js
myApp/bar
myApp/bar/test.js

Steps to Reproduce:

  1. open an empty VSCode window
  2. add the foo folder to the workspace
  3. add the bar folder to the workspace
  4. open one of the test.js file
  5. open the integrated terminal and type git checkout -b new_branch

What happens?
The branch sticks to master in the bottom left corner of vscode.

Note: Exiting VSCode and opening the previous workspace will correctly show the new_branch as current branch.

Reproduces without extensions: Yes

edit:
Problem also happens with macOS High Sierra. See my last comment.

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable buggitGIT issuesverifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions