Skip to contentOpen History to see the last commit
Utils.ts
7 lines234 Bytes
2import * as NodeFS from "node:fs"; 3import * as NodePath from "node:path"; 5export function isGitRepository(cwd: string): boolean { 6 return NodeFS.existsSync(NodePath.join(cwd, ".git"));