ci: windows: unshallow repository before checking specific commit

This commit is contained in:
Loris Cro
2022-11-25 20:41:33 +01:00
committed by Andrew Kelley
parent a6e7c43136
commit 71355ef0e2

View File

@@ -124,6 +124,9 @@ jobs:
run: |
rm -rf ../ci
cp -r ci ../
if ((git rev-parse --is-shallow-repository) -eq "true") {
git fetch --unshallow # `git describe` won't work on a shallow repo
}
git checkout ${{ inputs.commit }}
rm -rf ci
mv ../ci .