Orca is the place for working with a fleet of agents (e.g. Grok Bot, Claude Code). Run any coding agent with your own subscription. Available on desktop, mobile and remote runtime.
TypeScript adeagent-ideai-agentsautomationbotclaude-codecodexghosttygrok-bothermes-agentmobile-appmuseopenclawopencodeorchestrationpiruntimeterminalworktreesyc-backed
import { describe, expect, it } from 'vitest'
import { isNoWriteFetchHeadUnsupportedError } from './git-fetch-head-capability'
describe('isNoWriteFetchHeadUnsupportedError', () => {
it.each([
new Error("error: unknown option `no-write-fetch-head'"),
{ stderr: "error: unrecognized option '--no-write-fetch-head'" },
{ stdout: "fatal: invalid option: 'no-write-fetch-head'" }
])('recognizes old-Git option rejection shapes', (error) => {
expect(isNoWriteFetchHeadUnsupportedError(error)).toBe(true)
})
it('does not classify an ordinary fetch failure as unsupported', () => {
expect(
isNoWriteFetchHeadUnsupportedError({ stderr: 'fatal: could not read from remote repository' })
).toBe(false)
})
})