mirror of
https://github.com/python/cpython.git
synced 2026-10-28 10:25:05 +08:00
[3.12] gh-151365: Revert temporary Git downgrade (GH-156584) (GH-156599) (#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 commitda06c4cf88) This reverts commit6d2b551399. (cherry picked from commit3e9efe5509) Co-authored-by: Stan Ulbrych <stan@python.org>
This commit is contained in:
1 parent
a5bfd964c7
commit
e11441508a
2 files changed
-17
No files matched your search
@@ -66,15 +66,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'
|
||||
|
||||
@@ -33,14 +33,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'
|
||||
|
||||
Reference in new issue
Block a user