CI: workaround git bug regarding changed attributes

This commit is contained in:
Andrew Kelley 2022-12-18 16:31:12 -07:00
parent e6a4e87f69
commit aa44512b85

View file

@ -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