Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Source control status bar not detecting git worktree branch name #166019

Closed
1Mark opened this issue Nov 10, 2022 · 2 comments
Closed

Source control status bar not detecting git worktree branch name #166019

1Mark opened this issue Nov 10, 2022 · 2 comments

Comments

@1Mark
Copy link

1Mark commented Nov 10, 2022

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

  • VS Code Version:: 1.73.0
  • OS Version: macOS 12.6.1

Steps to Reproduce:

  1. cd some_git_repo
  2. git worktree add ../second_some_git_repo -b new_branch
  3. code ../second_some_git_repo
  4. Source control status bar shows the branch of the main git worktree instead of the new worktree
  5. CTRL + P Git rename branch shows wrong branch name -> returns am
  6. But gitlens copy current branch name works correctly returns new_branch
    Hence bug is in source control

image

In this image you see that my terminal displays the right branch name am but

@1Mark 1Mark changed the title Source control status bar not detecting git worktree Source control status bar not detecting git worktree branch name Nov 10, 2022
@vscodenpa
Copy link

Thanks for creating this issue! It looks like you may be using an old version of VS Code, the latest stable release is 1.73.1. Please try upgrading to the latest version and checking whether this issue remains.

Happy Coding!

@1Mark
Copy link
Author

1Mark commented Nov 10, 2022

1.73.1 has fixed it!!!

This issue was a duplicate of #164363

@1Mark 1Mark closed this as completed Nov 10, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Dec 25, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants