Fix start-from PR failures for fork-backed PRs (#2233)
* 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>
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
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")
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user