spacehub

surshar / claude-code

Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.

Built by Anthropic · github.com/anthropics

claude-code / mods / diff / tests / fixtures / not-a-repository.ts
10 lines · 243 BRaw
1import type { ProcessRunResult } from 'claude-code'
2
3/**
4 * How git fails in a directory outside any repository.
5 */
6export const NOT_A_REPOSITORY: ProcessRunResult = {
7 exitCode: 128,
8 stdout: '',
9 stderr: 'fatal: not a git repository',
10}