MCPcopy Index your code
hub / github.com/21st-dev/1code / isUpstreamMissingError

Function isUpstreamMissingError

src/main/lib/git/git-utils.ts:4–10  ·  view source on GitHub ↗
(message: string)

Source from the content-addressed store, hash-verified

2 * Check if the error message indicates the upstream branch is missing/deleted
3 */
4export function isUpstreamMissingError(message: string): boolean {
5 return (
6 message.includes("no such ref was fetched") ||
7 message.includes("no tracking information") ||
8 message.includes("couldn't find remote ref")
9 );
10}

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected