File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
2330 - name : ' Find merge base'
2431 id : merge-base
2532 run : |
Original file line number Diff line number Diff line change 9494 || ''
9595 }}
9696
97+ - name : ' Downgrade Git'
98+ # Temporarily downgrade to 2.43 until 2.55 is in the runner image,
99+ # to avoid "fatal: shallow file has changed since we read it" bug.
100+ # See https://github.com/python/cpython/issues/151365.
101+ if : github.event_name == 'pull_request'
102+ run : |
103+ sudo apt-get install -y --allow-downgrades 'git=1:2.43.*' 'git-man=1:2.43.*'
104+ git --version
105+
97106 # Adapted from https://github.com/actions/checkout/issues/520#issuecomment-1167205721
98107 - name : Fetch commits to get branch diff
99108 if : github.event_name == 'pull_request'
Original file line number Diff line number Diff line change 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
5058 # Adapted from https://github.com/actions/checkout/issues/520#issuecomment-1167205721
5159 - name : ' Fetch commits to get branch diff'
5260 if : github.event_name == 'pull_request'
You can’t perform that action at this time.
0 commit comments