Skip to content

gh-151365: Temporarily downgrade Git to prevent fatal error - #155495

Open
hugovk wants to merge 2 commits into
python:mainfrom
hugovk:3.16-downgrade-git
Open

gh-151365: Temporarily downgrade Git to prevent fatal error#155495
hugovk wants to merge 2 commits into
python:mainfrom
hugovk:3.16-downgrade-git

Conversation

@hugovk

@hugovk hugovk commented Aug 10, 2026

Copy link
Copy Markdown
Member

Downgrading takes 7 seconds.

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

@webknjaz

Copy link
Copy Markdown
Member

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

@vstinner vstinner left a comment

Copy link
Copy Markdown
Member

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.

# 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

Copy link
Copy Markdown
Member

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.

@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.*'

@webknjaz

webknjaz commented Aug 10, 2026

Copy link
Copy Markdown
Member

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

@webknjaz webknjaz added the 3.15 pre-release feature fixes, bugs and security fixes label Aug 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3.15 pre-release feature fixes, bugs and security fixes awaiting merge skip news

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants