gh-151365: Temporarily downgrade Git to prevent fatal error - #155495
Open
hugovk wants to merge 2 commits into
Open
gh-151365: Temporarily downgrade Git to prevent fatal error#155495hugovk wants to merge 2 commits into
hugovk wants to merge 2 commits into
Conversation
hugovk
marked this pull request as ready for review
August 10, 2026 16:18
hugovk
requested review from
AA-Turner,
JacobCoffee,
ezio-melotti,
itamaro and
webknjaz
as code owners
August 10, 2026 16:18
Member
|
Is it possible to explicitly declare the version limit in the command, plz? |
vstinner
approved these changes
Aug 10, 2026
vstinner
left a comment
Member
There was a problem hiding this comment.
LGTM.
It works as expected. For example, I see "git version 2.43.0" in the "Downgrade Git" step of Docs/Docs CI job.
| # 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 |
Member
There was a problem hiding this comment.
I didn't know this /noble-updates syntax. I understand that it's a way to request the git version of Ubuntu 24.04.
Member
Author
Something like this? sudo apt-get install -y --allow-downgrades 'git=1:2.43.*' 'git-man=1:2.43.*' |
Member
|
@hugovk yep, something along those lines. I was hoping for a |
webknjaz
approved these changes
Aug 10, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Downgrading takes 7 seconds.
Upgrading via build from source (+cache) or Homebrew are likely to take longer.