From 0d5289937b6fc9aacd2a7ebe4f5a601cd7cdc786 Mon Sep 17 00:00:00 2001 From: X9 Dev Date: Tue, 2 Jun 2026 14:18:14 +0200 Subject: [PATCH] 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 --- .forgejo/workflows/release.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.forgejo/workflows/release.yml b/.forgejo/workflows/release.yml index ac54103..bbe583b 100644 --- a/.forgejo/workflows/release.yml +++ b/.forgejo/workflows/release.yml @@ -29,7 +29,9 @@ jobs: working-directory: / run: | 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" \ /repo cd /repo