MCPcopy Create free account
hub / github.com/github/awesome-copilot / execGit

Function execGit

extensions/java-modernization-studio/scan.mjs:38–45  ·  view source on GitHub ↗
(args, cwd)

Source from the content-addressed store, hash-verified

36const MAX_READ_BYTES = 2 * 1024 * 1024;
37
38function execGit(args, cwd) {
39 return new Promise((resolve) => {
40 execFile("git", args, { cwd, timeout: 4000 }, (err, stdout) => {
41 if (err) resolve(null);
42 else resolve(String(stdout).trim());
43 });
44 });
45}
46
47async function readText(path) {
48 try {

Callers 1

scanRepoFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected