mirror of
https://github.com/stablyai/orca.git
synced 2026-09-24 16:02:41 +00:00
* Fix start-from PR failures for some fork PRs * fix: limit PR fallback fetches to missing refs --------- Co-authored-by: Neil <4138956+nwparker@users.noreply.github.com>
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")
|
|
)
|
|
}
|