mirror of
http://10.0.2.1:3031/sauer/claude-code.git
synced 2026-06-30 21:26:58 +10:00
9 lines
307 B
TypeScript
9 lines
307 B
TypeScript
|
|
import { findGitRoot } from '../git.js'
|
||
|
|
|
||
|
|
// Note: This is used to check git repo status synchronously
|
||
|
|
// Uses findGitRoot which walks the filesystem (no subprocess)
|
||
|
|
// Prefer `dirIsInGitRepo()` for async checks
|
||
|
|
export function projectIsInGitRepo(cwd: string): boolean {
|
||
|
|
return findGitRoot(cwd) !== null
|
||
|
|
}
|