Skip to content

Commit 3e9efe5

Browse files
gh-151365: Revert temporary Git downgrade (#156584)
Revert "gh-151365: Temporarily downgrade Git to prevent fatal error (#155495)" This reverts commit 6d2b551.
1 parent 72a88d7 commit 3e9efe5

3 files changed

Lines changed: 0 additions & 24 deletions

File tree

.github/workflows/reusable-check-html-ids.yml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,6 @@ jobs:
2020
with:
2121
persist-credentials: false
2222
ref: ${{ github.event.pull_request.head.sha }}
23-
- name: 'Downgrade Git'
24-
# Temporarily downgrade to 2.43 until 2.55 is in the runner image,
25-
# to avoid "fatal: shallow file has changed since we read it" bug.
26-
# See https://github.com/python/cpython/issues/151365.
27-
run: |
28-
sudo apt-get install -y --allow-downgrades 'git=1:2.43.*' 'git-man=1:2.43.*'
29-
git --version
3023
- name: 'Find merge base'
3124
id: merge-base
3225
run: |

.github/workflows/reusable-context.yml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -90,15 +90,6 @@ jobs:
9090
|| ''
9191
}}
9292
93-
- name: 'Downgrade Git'
94-
# Temporarily downgrade to 2.43 until 2.55 is in the runner image,
95-
# to avoid "fatal: shallow file has changed since we read it" bug.
96-
# See https://github.com/python/cpython/issues/151365.
97-
if: github.event_name == 'pull_request'
98-
run: |
99-
sudo apt-get install -y --allow-downgrades 'git=1:2.43.*' 'git-man=1:2.43.*'
100-
git --version
101-
10293
# Adapted from https://github.com/actions/checkout/issues/520#issuecomment-1167205721
10394
- name: Fetch commits to get branch diff
10495
if: github.event_name == 'pull_request'

.github/workflows/reusable-docs.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -47,14 +47,6 @@ jobs:
4747
&& github.event.pull_request.head.sha
4848
|| ''
4949
}}
50-
- name: 'Downgrade Git'
51-
# Temporarily downgrade to 2.43 until 2.55 is in the runner image,
52-
# to avoid "fatal: shallow file has changed since we read it" bug.
53-
# See https://github.com/python/cpython/issues/151365.
54-
if: github.event_name == 'pull_request'
55-
run: |
56-
sudo apt-get install -y --allow-downgrades 'git=1:2.43.*' 'git-man=1:2.43.*'
57-
git --version
5850
# Adapted from https://github.com/actions/checkout/issues/520#issuecomment-1167205721
5951
- name: 'Fetch commits to get branch diff'
6052
if: github.event_name == 'pull_request'

0 commit comments

Comments
 (0)