mirror of
https://github.com/stablyai/orca.git
synced 2026-10-31 00:57:45 +00:00
* fix: reduce worktree deletion branch cleanup overhead Refresh only the remote base branches needed to prove a branch merged, with automatic maintenance disabled. Skip merge simulation when no common ancestor is available and preserve the branch when its remote base cannot be refreshed. * fix: preserve fetch mappings and live branch cleanup fallbacks * fix: spawn macOS worktree deletion commands off the main thread
9 lines
311 B
TypeScript
9 lines
311 B
TypeScript
export function isMissingRemoteRefGitError(error: unknown): boolean {
|
|
const message = error instanceof Error ? error.message : String(error)
|
|
const normalized = message.toLowerCase()
|
|
return (
|
|
normalized.includes('could not find remote ref') ||
|
|
normalized.includes("couldn't find remote ref")
|
|
)
|
|
}
|