ci: full clone so version-tag builds can check out older commits

A vX.Y tag may point at a commit behind the main tip; --depth=1 only fetched
the tip, so git checkout of the tag commit failed (unable to read tree).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
X9 Dev 2026-06-02 14:18:14 +02:00
parent 043faa50cf
commit 11a65f209d

View file

@ -29,7 +29,9 @@ jobs:
working-directory: / working-directory: /
run: | run: |
apk add --no-cache git curl jq mingw-w64-gcc docker-cli apk add --no-cache git curl jq mingw-w64-gcc docker-cli
git clone --depth=1 \ # Full clone (not --depth=1): a version tag can point at an older commit
# than the main tip, which a shallow clone would not contain.
git clone \
"http://x9:${{ secrets.FORGEJO_TOKEN }}@xetup-forgejo:3000/${{ github.repository }}.git" \ "http://x9:${{ secrets.FORGEJO_TOKEN }}@xetup-forgejo:3000/${{ github.repository }}.git" \
/repo /repo
cd /repo cd /repo