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.
This commit is contained in:
Imanol Maiztegui
2026-04-24 14:06:27 +02:00
parent ed8fb577a0
commit 8990d5d128
+1 -1
View File
@@ -55,7 +55,7 @@ export async function hasUpstreamRemote(): Promise<boolean> {
}
export async function fetchUpstream(): Promise<void> {
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()}`)
}