From ff7839337f7eb144837505c75337d4d87d5fd529 Mon Sep 17 00:00:00 2001 From: Stan Ulbrych Date: Sat, 29 Aug 2026 20:13:16 +0100 Subject: [PATCH] [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 da06c4cf885796648202de5bd7e71bb8fe58e512) Co-authored-by: Stan Ulbrych This reverts commit 6d2b551399342fc6621195abfde7d79bcb1d7a4b. (cherry picked from commit 3e9efe550971a02a1580f2202399c1249d4be548) --- .github/workflows/reusable-context.yml | 9 --------- .github/workflows/reusable-docs.yml | 8 -------- 2 files changed, 17 deletions(-) diff --git a/.github/workflows/reusable-context.yml b/.github/workflows/reusable-context.yml index 09e5918f26fec4..8ed6873104db7b 100644 --- a/.github/workflows/reusable-context.yml +++ b/.github/workflows/reusable-context.yml @@ -86,15 +86,6 @@ jobs: || '' }} - - name: 'Downgrade Git' - # Temporarily downgrade to 2.43 until 2.55 is in the runner image, - # to avoid "fatal: shallow file has changed since we read it" bug. - # See https://github.com/python/cpython/issues/151365. - if: github.event_name == 'pull_request' - run: | - sudo apt-get install -y --allow-downgrades 'git=1:2.43.*' 'git-man=1:2.43.*' - git --version - # Adapted from https://github.com/actions/checkout/issues/520#issuecomment-1167205721 - name: Fetch commits to get branch diff if: github.event_name == 'pull_request' diff --git a/.github/workflows/reusable-docs.yml b/.github/workflows/reusable-docs.yml index 5b315253ac6070..3de76dd48c5961 100644 --- a/.github/workflows/reusable-docs.yml +++ b/.github/workflows/reusable-docs.yml @@ -47,14 +47,6 @@ jobs: && github.event.pull_request.head.sha || '' }} - - name: 'Downgrade Git' - # Temporarily downgrade to 2.43 until 2.55 is in the runner image, - # to avoid "fatal: shallow file has changed since we read it" bug. - # See https://github.com/python/cpython/issues/151365. - if: github.event_name == 'pull_request' - run: | - sudo apt-get install -y --allow-downgrades 'git=1:2.43.*' 'git-man=1:2.43.*' - git --version # Adapted from https://github.com/actions/checkout/issues/520#issuecomment-1167205721 - name: 'Fetch commits to get branch diff' if: github.event_name == 'pull_request'