MCPcopy Create free account
hub / github.com/ReviewStage/stage-cli / readRepoRoot

Function readRepoRoot

packages/cli/src/git.ts:30–39  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

28}
29
30export function readRepoRoot(): string {
31 try {
32 return execFileSync("git", ["rev-parse", "--show-toplevel"], {
33 encoding: "utf8",
34 stdio: ["ignore", "pipe", "ignore"],
35 }).trim();
36 } catch {
37 throw new NotInGitRepoError();
38 }
39}
40
41function readOriginUrl(repoRoot: string): string | null {
42 try {

Callers 6

readRepoContextFunction · 0.85
runPrepFunction · 0.85
assembleChaptersFileFunction · 0.85
resolveViewerFunction · 0.85
getDbPathFunction · 0.85
path.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected