Skip to content

Git - Partial Git repositories cause problems in VS Code Source Control panel #246946

@ADTC

Description

@ADTC

Type: Bug

I'm attempting to work with this repo: https://github.com/withastro/astro

Since the repo is very large (over 11.6k commits), I chose to pull only the latest 10 commits or so. This gives me a grafted history where only the latest 10 commits from the repo are available in my system locally, and the last one shows grafted on it when viewed with git log.

I often notice that the Source Control panel in VS Code would either hang with the "loading" band moving left to right (with actions that involve viewing the diff of changes) or straight up throw errors from Git (with actions that involve history modification, like Commit (Amend) or rebase).

It seems VS Code is unable to work with grafted (partial) Git repo histories and makes the assumption that the history is always complete.

Current workaround: Execute "Reload Window" from the Command Bar, or restart VS Code.

VS Code version: Code 1.98.2 (ddc367e, 2025-03-12T13:32:45.399Z)
OS version: Darwin arm64 23.6.0
Modes:

System Info
Item Value
CPUs Apple M1 Pro (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, 5, 4
Memory (System) 16.00GB (0.06GB free)
Process Argv . --crash-reporter-id e73e6092-1f35-49fb-b56c-f958b97e2539
Screen Reader no
VM 0%
Extensions (29)
Extension Author (truncated) Version
git-skip alc 0.6.0
tailwind-to-css Ana 0.0.7
astro-vscode ast 2.15.4
close-tabs Bal 1.1.5
color-info bie 0.7.2
biome bio 2.3.2
vscode-tailwindcss bra 0.14.15
vscode-eslint dba 3.0.10
prettier-vscode esb 11.0.0
codespaces Git 1.17.3
copilot Git 1.303.0
copilot-chat Git 0.25.1
react-component-tree Hab 1.1.1
file-duplicate inc 1.0.5
vscode-env Iro 0.1.0
svg joc 1.5.4
bulk-problem-diagnostics Mar 1.0.7
vscode-scss mrm 0.10.0
debugpy ms- 2025.6.0
python ms- 2025.4.0
vscode-pylance ms- 2025.4.1
remote-containers ms- 0.401.0
find-unused-files nox 0.0.6
commandOnAllFiles rio 0.5.1
code-spell-checker str 4.0.45
tailwind-variant-generator und 0.0.1
vscode-gradle vsc 3.16.4
vscode-icons vsc 12.12.0
gitblame wad 11.1.2

(1 theme extensions excluded)

A/B Experiments
vsliv368cf:30146710
vspor879:30202332
vspor708:30202333
vspor363:30204092
pythonvspyt551cf:31249601
vscod805:30301674
binariesv615:30325510
c4g48928:30535728
azure-dev_surveyone:30548225
2i9eh265:30646982
962ge761:30959799
h48ei257:31000450
pythontbext0:30879054
cppperfnew:31000557
dwnewjupyter:31046869
pythonrstrctxt:31112756
nativeloc2:31192216
5fd0e150:31155592
dwcopilot:31170013
6074i472:31201624
dwoutputs:31242946
customenabled:31248079
hdaa2157:31222309
copilot_t_ci:31222730
968h8231:31277804
cp15370_t:31280197
pythoneinst12:31285622
bgtreat:31268568
4gafe986:31271826
31787653:31262186
3e8i5726:31271747
996jf627:31283433
usemplatestapi:31288272
7bj51361:31289155
g20af354:31278749
aj953862:31281341
generatesymbolc:31288065
convertfstringc:31288067

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable buggitGIT issues

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions