Skip to content

Extension does not correctly detect "published" branch #6978

@davidpcaldwell

Description

@davidpcaldwell

Type: Bug

Create a Git post-commit hook that pushes the branch via git push origin HEAD

Commit from the Visual Studio Code UI

Go to the extension and create a new pull request, which will default to your new branch

It will complain that your branch is not published and ask to publish it

But the branch actually is published!

I assume the same thing would happen if I did git push origin HEAD from the VSCode terminal, but perhaps not -- perhaps there is some interception of terminal things happening. I do assume if I pushed it another way (a system terminal) we'd have the same problem. But maybe not, don't know how the implementation works.

But what I know for sure is that I publish my branch and then Visual Studio Code asks me if I want to publish it again in order to create a GitHub pull request.

Extension version: 0.110.0
VS Code version: Code 1.100.2 (Universal) (848b80aeb52026648a8ff9f7c45a9b0a80641e2e, 2025-05-14T21:47:40.416Z)
OS version: Darwin arm64 24.4.0
Modes:
Remote OS version: Linux arm64 6.10.14-linuxkit

System Info
Item Value
CPUs Apple M1 Max (10 x 2400)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: enabled_on
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_graphite: disabled_off
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off
Load (avg) 5, 6, 7
Memory (System) 64.00GB (0.15GB free)
Process Argv --crash-reporter-id e2e97e02-296a-49dd-9067-a6514986e1d6
Screen Reader no
VM 0%
Item Value
Remote Dev Container: slime @ desktop-linux
OS Linux arm64 6.10.14-linuxkit
CPUs unknown (10 x 0)
Memory (System) 31.29GB (27.68GB free)
VM 0%
A/B Experiments
vsliv368:30146709
vspor879:30202332
vspor708:30202333
vspor363:30204092
pythonvspyt551:31249599
vscod805:30301674
binariesv615:30325510
c4g48928:30535728
azure-dev_surveyone:30548225
962ge761:30959799
h48ei257:31000450
pythontbext0:30879054
cppperfnew:31000557
dwnewjupytercf:31046870
pythonrstrctxt:31112756
nativeloc2:31192216
5fd0e150:31155592
dwcopilot:31170013
6074i472:31201624
dwoutputs:31242946
customenabled:31248079
hdaa2157:31222309
copilot_t_ci:31222730
e5gg6876:31282496
pythoneinst12:31285622
bgtreat:31268568
4gafe986:31271826
c7cif404:31309971
996jf627:31283433
pythonrdcb7cf:31303019
usemplatestapi:31297334
0aa6g176:31307128
7bj51361:31289155
747dc170:31275177
pylancecolor:31309108
aj953862:31281341
generatesymbolt:31295002
convertfstringf:31295003
gendocf:31295004
j6a0c355:31309728

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions