gitkraken / vscode-gitlens

Supercharge Git inside VS Code and unlock untapped knowledge within each repository — Visualize code authorship at a glance via Git blame annotations and CodeLens, seamlessly navigate and explore Git repositories, gain valuable insights via rich visualizations and powerful comparison commands, and so much more
http://gitkraken.com/gitlens
Other
8.85k stars 1.2k forks source link

Branch name doesn't always update display name after switching #3351

Open nistre opened 2 weeks ago

nistre commented 2 weeks ago

Description

  1. Have a group of git branches that creates a folder in the Branches accordion: image
  2. Have an origin branch, not created/owned by you that falls into one of the folders
  3. In the terminal run git checkout -t orgin/<origin_branch_created_by_someone_else> or switch to the branch via the Remotes accordion:
    1. image
    2. image
    3. image
  4. Switch another branch so the new local branch falls under the folders
  5. Expected: The displayed name updates so the folder name doesn't show in the displayed branch name, like foobar1, foobar2, and foobar3 in Step 1
  6. Result: The folder remains in the branch name, so it appears like the folder name is duplicated. Despite both git and vscode knowing the correct branch name:
    1. image
    2. Despite users is only once in the branch name according to git and VS Code elsewhere:
      1. image
      2. image

GitLens Version

15.1.0

VS Code Version

Version: 1.90.0 (user setup) Commit: 89de5a8d4d6205e5b11647eb6a74844ca23d2573 Date: 2024-06-04T19:33:54.889Z Electron: 29.4.0 ElectronBuildId: 9593362 Chromium: 122.0.6261.156 Node.js: 20.9.0 V8: 12.2.281.27-electron.0 OS: Windows_NT x64 10.0.19045

Git Version

git version 2.45.2.windows.1

Logs, Screenshots, Screen Captures, etc

No response