GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — gh-151365: Temporarily downgrade Git to prevent fatal error by hugovk · Pull Request #155495 · python/cpython

Conversation

@hugovk

@hugovk hugovk commented Aug 10, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

Downgrading takes 7 seconds.

Upgrading via build from source (+cache) or Homebrew are likely to take longer.

  • Issue: GitHub Actions: Docs/Docs CI fails randomly with "fatal: shallow file has changed since we read it" error (git 2.54.0 regression) #151365

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@hugovk
Temporarily downgrade Git to prevent fatal error
8b75361
@bedevere-app bedevere-app Bot mentioned this pull request Aug 10, 2026
GitHub Actions: Docs/Docs CI fails randomly with "fatal: shallow file has changed since we read it" error (git 2.54.0 regression) #151365
Closed
@hugovk hugovk added the skip news label Aug 10, 2026
@hugovk
hugovk marked this pull request as ready for review August 10, 2026 16:18
@hugovk
hugovk requested review from AA-Turner, JacobCoffee, ezio-melotti, itamaro and webknjaz as code owners August 10, 2026 16:18
@bedevere-app bedevere-app Bot added the awaiting core review label Aug 10, 2026
@webknjaz

webknjaz commented Aug 10, 2026

Copy link
Copy Markdown
Member

Is it possible to explicitly declare the version limit in the command, plz?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

vstinner
vstinner approved these changes Aug 10, 2026
View reviewed changes

@vstinner vstinner left a comment

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

It works as expected. For example, I see "git version 2.43.0" in the "Downgrade Git" step of Docs/Docs CI job.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread .github/workflows/reusable-check-html-ids.yml Outdated
# to avoid "fatal: shallow file has changed since we read it" bug.
# See https://github.com/python/cpython/issues/151365.
run: |
sudo apt-get install -y --allow-downgrades git/noble-updates git-man/noble-updates

@vstinner vstinner Aug 10, 2026

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't know this /noble-updates syntax. I understand that it's a way to request the git version of Ubuntu 24.04.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@bedevere-app bedevere-app Bot added awaiting merge and removed awaiting core review labels Aug 10, 2026
@vstinner vstinner mentioned this pull request Aug 10, 2026
gh-151365: Retry git fetch in CI workflows #155490
Closed
@hugovk

hugovk commented Aug 10, 2026

Copy link
Copy Markdown
Member Author

Is it possible to explicitly declare the version limit in the command, plz?

Something like this?

sudo apt-get install -y --allow-downgrades 'git=1:2.43.*' 'git-man=1:2.43.*'
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@webknjaz

webknjaz commented Aug 10, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

@hugovk yep, something along those lines. I was hoping for a <= broken_version.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@hugovk
Pin to 2.43.*
0fb2213
webknjaz
webknjaz approved these changes Aug 10, 2026
View reviewed changes
@webknjaz webknjaz added the 3.15 bugs and security fixes label Aug 10, 2026
StanFromIreland
StanFromIreland approved these changes Aug 10, 2026
View reviewed changes
serhiy-storchaka
serhiy-storchaka approved these changes Aug 10, 2026
View reviewed changes
@vstinner

vstinner commented Aug 10, 2026

Copy link
Copy Markdown
Member

I suppose that this change should be backported to stable branches (3.13 to 3.15).

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@webknjaz

webknjaz commented Aug 10, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

@vstinner I've already labeled it for 3.15, but one of the workflow files doesn't exist in 3.14 so automatic backporting will fail farther back. Once it's ported into 3.15, somebody needs to look into picking it back into older branches manually.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@vstinner vstinner added the needs backport to 3.15 bugs and security fixes label Aug 10, 2026
@vstinner

vstinner commented Aug 10, 2026

Copy link
Copy Markdown
Member

I've already labeled it for 3.15

The "needs backport to 3.15" label is better for that: it backports automatically the change to 3.15.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@hugovk
hugovk merged commit 6d2b551 into python:main Aug 11, 2026
55 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@hugovk
hugovk deleted the 3.16-downgrade-git branch August 11, 2026 04:53
@miss-islington-app

miss-islington-app Bot commented Aug 11, 2026

Copy link
Copy Markdown

Thanks @hugovk for the PR 🌮🎉.. I'm working now to backport this PR to: 3.15.
🐍🍒⛏🤖

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@bedevere-app bedevere-app Bot removed the awaiting merge label Aug 11, 2026
@bedevere-app

bedevere-app Bot commented Aug 11, 2026

Copy link
Copy Markdown

GH-155532 is a backport of this pull request to the 3.15 branch.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@bedevere-app bedevere-app Bot removed the needs backport to 3.15 bugs and security fixes label Aug 11, 2026
hugovk added a commit that referenced this pull request Aug 11, 2026
@miss-islington @hugovk
[3.15] gh-151365: Temporarily downgrade Git to prevent fatal error (G…
74da6fb
…H-155495) (#155532)

Co-authored-by: Hugo van Kemenade <[email protected]>
hugovk added a commit that referenced this pull request Aug 11, 2026
@hugovk @miss-islington
[3.14] gh-151365: Temporarily downgrade Git to prevent fatal error (G…
f420f7c
…H-155495) (GH-155532) (#155533)

Co-authored-by: Miss Islington (bot) <[email protected]>
hugovk added a commit that referenced this pull request Aug 11, 2026
@miss-islington @hugovk
[3.13] gh-151365: Temporarily downgrade Git to prevent fatal error (G…
bec0cbc
…H-155495) (GH-155532) (GH-155533) (#155535)

Co-authored-by: Hugo van Kemenade <[email protected]>
hugovk added a commit that referenced this pull request Aug 11, 2026
@miss-islington @hugovk
[3.12] gh-151365: Temporarily downgrade Git to prevent fatal error (G…
af5a056
…H-155495) (GH-155532) (GH-155533) (GH-155535) (#155537)

Co-authored-by: Hugo van Kemenade <[email protected]>
@webknjaz

webknjaz commented Aug 11, 2026

Copy link
Copy Markdown
Member

@vstinner oops, for some reason I thought I did that but confused the two labels 🤦‍♂️ sry

vstinner reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

mbeijen pushed a commit to mbeijen/cpython that referenced this pull request Aug 14, 2026
@hugovk @mbeijen
pythongh-151365: Temporarily downgrade Git to prevent fatal error (py…
e511781
…thon#155495)
hugovk pushed a commit that referenced this pull request Aug 29, 2026
@StanFromIreland
gh-151365: Revert temporary Git downgrade (#156584)
3e9efe5
Revert "gh-151365: Temporarily downgrade Git to prevent fatal error (#155495)"

This reverts commit 6d2b551.
@miss-islington miss-islington mentioned this pull request Aug 29, 2026
[3.15] gh-151365: Revert temporary Git downgrade (GH-156584) #156588
Merged
@StanFromIreland StanFromIreland mentioned this pull request Aug 29, 2026
[3.14] gh-151365: Revert temporary Git downgrade (GH-156584) #156599
Merged
hugovk pushed a commit that referenced this pull request Aug 29, 2026
@StanFromIreland
[3.14] gh-151365: Revert temporary Git downgrade (GH-156584) (#156599)
da06c4c
Revert "gh-151365: Temporarily downgrade Git to prevent fatal error (GH-155495)"

This reverts commit 6d2b551.
(cherry picked from commit 3e9efe5)
This was referenced Aug 29, 2026
[3.13] gh-151365: Revert temporary Git downgrade (GH-156584) (GH-156599) #156600
Merged
[3.12] gh-151365: Revert temporary Git downgrade (GH-156584) (GH-156599) #156601
Merged
hugovk pushed a commit that referenced this pull request Aug 30, 2026
@miss-islington @StanFromIreland
[3.13] gh-151365: Revert temporary Git downgrade (GH-156584) (GH-156599…
4ee4734
…) (#156600)

[3.14] gh-151365: Revert temporary Git downgrade (GH-156584) (GH-156599)

Revert "gh-151365: Temporarily downgrade Git to prevent fatal error (GH-155495)"
(cherry picked from commit da06c4c)


This reverts commit 6d2b551.
(cherry picked from commit 3e9efe5)

Co-authored-by: Stan Ulbrych <[email protected]>
hugovk pushed a commit that referenced this pull request Aug 30, 2026
@miss-islington @StanFromIreland
[3.12] gh-151365: Revert temporary Git downgrade (GH-156584) (GH-156599…
e114415
…) (#156601)

[3.14] gh-151365: Revert temporary Git downgrade (GH-156584) (GH-156599)

Revert "gh-151365: Temporarily downgrade Git to prevent fatal error (GH-155495)"
(cherry picked from commit da06c4c)


This reverts commit 6d2b551.
(cherry picked from commit 3e9efe5)

Co-authored-by: Stan Ulbrych <[email protected]>
clin1234 pushed a commit to clin1234/cpython that referenced this pull request Sep 12, 2026
@StanFromIreland @clin1234
pythongh-151365: Revert temporary Git downgrade (python#156584)
e4b0fe1
Revert "pythongh-151365: Temporarily downgrade Git to prevent fatal error (python#155495)"

This reverts commit 6d2b551.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@vstinner vstinner vstinner approved these changes
@webknjaz webknjaz webknjaz approved these changes
@serhiy-storchaka serhiy-storchaka serhiy-storchaka approved these changes
@StanFromIreland StanFromIreland StanFromIreland approved these changes
@ezio-melotti ezio-melotti Awaiting requested review from ezio-melotti ezio-melotti is a code owner
@AA-Turner AA-Turner Awaiting requested review from AA-Turner AA-Turner is a code owner
@itamaro itamaro Awaiting requested review from itamaro itamaro is a code owner
@JacobCoffee JacobCoffee Awaiting requested review from JacobCoffee JacobCoffee is a code owner

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

3.15 bugs and security fixes skip news

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

5 participants

@hugovk @webknjaz @vstinner @serhiy-storchaka @StanFromIreland
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.