File tree Expand file tree Collapse file tree 2 files changed +30
-3
lines changed Expand file tree Collapse file tree 2 files changed +30
-3
lines changed Original file line number Diff line number Diff line change @@ -165,6 +165,36 @@ jobs:
165165 runs-on : windows-latest
166166
167167 steps :
168+ - name : Upgrade Git for Windows to latest (pre)release
169+ # This upgrades Git to work around https://github.com/GitoxideLabs/gitoxide/issues/1849.
170+ # TODO: Remove this step once the runner image has Git 2.49.0 or higher.
171+ env :
172+ GH_TOKEN : ${{ github.token }}
173+ run : |
174+ $workingDir = '~/git-dl'
175+ $repo = 'git-for-windows/git'
176+ $pattern = 'Git-*-64-bit.exe'
177+ $log = 'setup-log.txt'
178+ # Inno Setup args reference: https://jrsoftware.org/ishelp/index.php?topic=setupcmdline
179+ $arguments = @(
180+ '/VERYSILENT',
181+ '/SUPPRESSMSGBOXES',
182+ '/ALLUSERS',
183+ "/LOG=$log",
184+ '/NORESTART',
185+ '/CLOSEAPPLICATIONS',
186+ '/FORCECLOSEAPPLICATIONS'
187+ )
188+
189+ mkdir $workingDir | Out-Null
190+ cd $workingDir
191+ $newestTag = gh release list --repo $repo --limit 1 --json tagName --jq '.[0].tagName'
192+ gh release download $newestTag --repo $repo --pattern $pattern
193+ $installer = Get-Item $pattern
194+ Start-Process -FilePath $installer -ArgumentList $arguments -NoNewWindow -Wait
195+
196+ Get-Content -Path $log -Tail 50
197+ git version
168198 - uses : actions/checkout@v4
169199 - uses : dtolnay/rust-toolchain@stable
170200 - uses : Swatinem/rust-cache@v2
Original file line number Diff line number Diff line change 1- gix-diff-tests::diff index::renames_by_identity
2- gix-diff-tests::diff tree_with_rewrites::renames_by_identity
31gix-glob::glob pattern::matching::compare_baseline_with_ours
4- gix-merge::merge tree::run_baseline
52gix-pathspec::pathspec parse::baseline
63gix-pathspec::pathspec parse::valid::glob_negations_are_always_literal
74gix-pathspec::pathspec parse::valid::whitespace_in_pathspec
You can’t perform that action at this time.
0 commit comments