Allow git describe to get the version for FreeBSD and Cygwin in CI (#1640)

* Specify `safe.directory`
* Fetch tags
* Fetch all commits
This commit is contained in:
Rangi
2025-01-29 19:57:15 -05:00
committed by GitHub
parent b35e9d86fb
commit 03452c6d4f
4 changed files with 10 additions and 4 deletions

View File

@@ -45,7 +45,7 @@ tryCmp () {
}
# Add the version constants test, outputting the closest tag to the HEAD
if git describe --tags --abbrev=0 >version.out; then
if git -c safe.directory='*' describe --tags --abbrev=0 >version.out; then
$RGBASM --version >>version.out
cat >version.asm <<EOF
IF !DEF(__RGBDS_RC__)