Skip to content

Downgrade mingw-w64-git to allow big fetches again #2

Downgrade mingw-w64-git to allow big fetches again

Downgrade mingw-w64-git to allow big fetches again #2

Workflow file for this run

name: downgrade-git-from-v2.50.0-rc0
on:
push:
branches:
- temporarily-downgrade-git
env:
GIT_CONFIG_PARAMETERS: "'user.name=Git for Windows Build Agent' 'user.email=ci@git-for-windows.build' 'http.sslbackend=schannel' 'core.autocrlf=false' 'checkout.workers=56'"
HOME: "${{ github.workspace }}\\home\\git-ci"
MSYSTEM: MINGW32
jobs:
downgrade-git:
runs-on: windows-latest
permissions:
contents: write
steps:
- name: clone git-sdk-32
uses: actions/checkout@v4
with:
persist-credentials: true
- name: use git-sdk-32's Bash and Git for Windows' git.exe
run: "usr\\bin\\bash.exe -lc 'cygpath -aw /usr/bin >>$GITHUB_PATH && cygpath -aw /c/Program\\ Files/Git/cmd/ >>$GITHUB_PATH'"
- name: download Pacman packages
id: download
shell: bash
run: |
set -ex
# Only do this if mingw-w64-i686-git is at v2.50.0-rc0 (known bad)
test -d var/lib/pacman/local/mingw-w64-i686-git-2.50.0.rc0.windows.1-1 || exit 0
for f in \
mingw-w64-i686-git-2.49.0.1.cca1f38702-1-any.pkg.tar.xz \
mingw-w64-i686-git-2.49.0.1.cca1f38702-1-any.pkg.tar.xz.sig \
mingw-w64-i686-git-doc-html-2.49.0.1.cca1f38702-1-any.pkg.tar.xz \
mingw-w64-i686-git-doc-html-2.49.0.1.cca1f38702-1-any.pkg.tar.xz.sig
do
curl -fsLO https://github.com/git-for-windows/pacman-repo/releases/download/2025-03-17T09-41-32.275727400Z/$f
done
echo "result=$(echo *.pkg.tar.xz)" >>$GITHUB_OUTPUT
- name: give the `/etc/profile.d/` scripts a chance to set things up
if: steps.download.outputs.result != ''
shell: bash
run: |
bash -lc 'uname -a'
- name: install ${{ steps.download.outputs.result }}
if: steps.download.outputs.result != ''
shell: pwsh
run: pacman -U --noconfirm ${{ steps.download.outputs.result }}
- name: commit ${{ steps.download.outputs.result }}
if: steps.download.outputs.result != ''
shell: bash
run: |
rm ${{ steps.download.outputs.result }} *.pkg.tar.xz.sig &&
git add -A &&
git commit -m 'Downgrade mingw-w64-git to a version without the mimalloc bug' \
-m 'This bug prevents fetching git-for-windows/git'\''s `main` branch' &&
git push origin HEAD