MCPcopy Create free account
hub / github.com/NativeScript/SimDeck / repoRoot

Function repoRoot

scripts/codex-worktree-cache.mjs:269–277  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

267}
268
269function repoRoot() {
270 const result = spawnSync("git", ["rev-parse", "--show-toplevel"], {
271 encoding: "utf8",
272 });
273 if (result.status === 0) {
274 return result.stdout.trim();
275 }
276 return resolve(dirname(fileURLToPath(import.meta.url)), "..");
277}
278
279function mainCheckoutRoot() {
280 const result = spawnSync(

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected