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()}`) }