Co-authored-by: Julius Marminge <[email protected]> Co-authored-by: Cursor Agent <[email protected]> Co-authored-by: codex <[email protected]> Co-authored-by: cursor[bot] <206951365+cursor[bot]@users.noreply.github.com>
7 lines
171 B
TypeScript
7 lines
171 B
TypeScript
import { existsSync } from "node:fs";
|
|
import { join } from "node:path";
|
|
|
|
export function isGitRepository(cwd: string): boolean {
|
|
return existsSync(join(cwd, ".git"));
|
|
}
|