From aa44512b8511e18a334dcee55c1d9ae5d5aba842 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Sun, 18 Dec 2022 16:31:12 -0700 Subject: [PATCH] CI: workaround git bug regarding changed attributes --- ci/aarch64-windows.ps1 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ci/aarch64-windows.ps1 b/ci/aarch64-windows.ps1 index bf80d3a091..0e43c1bf69 100644 --- a/ci/aarch64-windows.ps1 +++ b/ci/aarch64-windows.ps1 @@ -31,6 +31,11 @@ if ((git rev-parse --is-shallow-repository) -eq "true") { git fetch --unshallow # `git describe` won't work on a shallow repo } +# Fix files that have their gitattributes changed +git rm -rf lib +git restore --staged lib +git checkout lib + Write-Output "Building from source..." Remove-Item -Path 'build-release' -Recurse -Force -ErrorAction Ignore New-Item -Path 'build-release' -ItemType Directory