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 Code shows wrong branch #165335

Closed
marcoschou opened this issue Nov 3, 2022 · 4 comments
Closed

Source Code shows wrong branch #165335

marcoschou opened this issue Nov 3, 2022 · 4 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug *duplicate Issue identified as a duplicate of another issue(s) git GIT issues

Comments

@marcoschou
Copy link

Type: Bug

  1. Start VsCode
  2. Switch to a different branch
  3. Source control still shows original (master) branch.
  4. I think I should mention that I am using git worktrees, in case it has something to do with the problem.

VS Code version: Code 1.73.0 (8fa188b, 2022-11-01T15:34:06.111Z)
OS version: Windows_NT x64 10.0.19042
Modes:
Sandboxed: No
Remote OS version: Linux x64 3.10.0-1160.76.1.el7.x86_64

System Info
Item Value
CPUs 12th Gen Intel(R) Core(TM) i7-1265U (12 x 2688)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_renderer: enabled_on
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off
Load (avg) undefined
Memory (System) 15.69GB (7.44GB free)
Process Argv --crash-reporter-id 786768c0-d188-4f92-a2ad-02c742f90339
Screen Reader no
VM 0%
Item Value
OS Linux x64 3.10.0-1160.76.1.el7.x86_64
CPUs Intel(R) Xeon(R) Gold 6130 CPU @ 2.10GHz (64 x 999)
Memory (System) 125.42GB (52.25GB free)
VM 0%
Extensions (8)
Extension Author (truncated) Version
Bookmarks ale 13.3.1
remote-ssh ms- 0.90.1
remote-ssh-edit ms- 0.84.0
remote-wsl ms- 0.72.0
gitlens eam 13.0.3
cmake-tools ms- 1.12.27
cpptools ms- 1.12.4
cmake twx 0.0.17

(1 theme extensions excluded)

A/B Experiments
vsliv368cf:30146710
vsreu685:30147344
python383cf:30185419
vspor879:30202332
vspor708:30202333
vspor363:30204092
vslsvsres303:30308271
pythonvspyl392:30443607
vserr242cf:30382550
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vshan820:30294714
vstes263:30335439
vscoreces:30445986
pythondataviewer:30285071
vscod805:30301674
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
cmake_vspar411:30581797
vsaa593cf:30376535
pythonvs932:30410667
cppdebug:30492333
vsclangdf:30486550
c4g48928:30535728
dsvsc012cf:30540253
azure-dev_surveyone:30548225
pyindex848:30577860
nodejswelcome1cf:30587006
fc301958:30595537
3biah626:30602489
3d0df643:30602300

@KenmaKoz
Copy link

KenmaKoz commented Nov 3, 2022

I have the same issue. Plus VS Code will pull from master (or other originals) and not the checked out branch.

@SvenEV-bakerhughes
Copy link

SvenEV-bakerhughes commented Nov 3, 2022

Same here since version 1.73.0 🙋‍♂️ Related: #164363, #165319, #165320

@KenmaKoz
Copy link

KenmaKoz commented Nov 3, 2022

Changes in #162572 caused this bug. To be specific is this line:

const raw = await fs.readFile(path.join(this.dotGit.commonPath ?? this.dotGit.path, 'HEAD'), 'utf8');

This was meantioned by [jarrodldavis ](#164363 (comment))

For a workaround just install the previous version 1.72.0 and disable auto updates for now.

@lszomoru lszomoru added bug Issue identified by VS Code Team member as probable bug git GIT issues candidate Issue identified as probable candidate for fixing in the next release and removed candidate Issue identified as probable candidate for fixing in the next release labels Nov 4, 2022
@lszomoru
Copy link
Member

lszomoru commented Nov 4, 2022

Closing as duplicate of #164363

@lszomoru lszomoru closed this as completed Nov 4, 2022
@lszomoru lszomoru added the *duplicate Issue identified as a duplicate of another issue(s) label Nov 4, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Dec 19, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug *duplicate Issue identified as a duplicate of another issue(s) git GIT issues
Projects
None yet
Development

No branches or pull requests

5 participants