MCPcopy
hub / github.com/graphql/graphql-spec / execGit

Function execGit

scripts/generate-contributor-list.mjs:49–55  ·  view source on GitHub ↗
(argv, opts = {})

Source from the content-addressed store, hash-verified

47}
48
49function execGit(argv, opts = {}) {
50 try {
51 return execFileSync("git", argv, { encoding: "utf8", maxBuffer: 1024 * 1024 * 400, ...opts });
52 } catch (e) {
53 die(`git ${argv.join(" ")} failed: ${e.message}`);
54 }
55}
56function repoNameWithOwner() {
57 let url = "";
58 try { url = execGit(["remote", "get-url", "origin"]).trim(); } catch { }

Callers 2

repoNameWithOwnerFunction · 0.85
revListFunction · 0.85

Calls 1

dieFunction · 0.85

Tested by

no test coverage detected