mirror of
https://github.com/Kilo-Org/kilocode.git
synced 2026-09-17 17:43:04 +08:00
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:
@@ -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()}`)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user