From 8990d5d1282de16dcea5637baedf07ee7abf7cf0 Mon Sep 17 00:00:00 2001 From: Imanol Maiztegui Date: Fri, 24 Apr 2026 14:06:27 +0200 Subject: [PATCH] refactor(upstream): force-fetch tags when syncing from upstream remote Append --tags --force flags to the git fetch upstream command so that upstream tag references are always updated and locally diverged tags are overwritten to match the remote state. --- script/upstream/utils/git.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/upstream/utils/git.ts b/script/upstream/utils/git.ts index d82c147f69d..f55e731a78f 100644 --- a/script/upstream/utils/git.ts +++ b/script/upstream/utils/git.ts @@ -55,7 +55,7 @@ export async function hasUpstreamRemote(): Promise { } export async function fetchUpstream(): Promise { - const result = await $`git fetch upstream`.quiet().nothrow() + const result = await $`git fetch upstream --tags --force`.quiet().nothrow() if (result.exitCode !== 0) { throw new Error(`Failed to fetch upstream: ${result.stderr.toString()}`) }