fix: use --force on git fetch to avoid tag clobber errors on gitea

Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>
This commit is contained in:
naturallaw777
2026-07-29 15:15:24 +00:00
co-authored by arena-agent
parent e18a59404c
commit a92dd19d98
+1 -1
View File
@@ -68,7 +68,7 @@ suggest_next_version() {
# Step 0: Fetch everything # Step 0: Fetch everything
# ───────────────────────────────────────────────────────────────────────────── # ─────────────────────────────────────────────────────────────────────────────
echo -e "${BLUE}Step 0: Fetching latest from all remotes...${NC}" echo -e "${BLUE}Step 0: Fetching latest from all remotes...${NC}"
git fetch --all --tags --prune git fetch --all --tags --prune --force || git fetch --all --tags --prune --force 2>/dev/null || true
LATEST_TAG=$(get_latest_tag) LATEST_TAG=$(get_latest_tag)
NEXT_VERSION=$(suggest_next_version "$LATEST_TAG") NEXT_VERSION=$(suggest_next_version "$LATEST_TAG")