MCPcopy Create free account
hub / github.com/SethGammon/Citadel / runGit

Function runGit

scripts/pr-ready.js:63–73  ·  view source on GitHub ↗
(projectRoot, args)

Source from the content-addressed store, hash-verified

61}
62
63function runGit(projectRoot, args) {
64 try {
65 return spawnSync('git', args, {
66 cwd: projectRoot,
67 encoding: 'utf8',
68 stdio: ['ignore', 'pipe', 'pipe'],
69 }).stdout.trim();
70 } catch {
71 return '';
72 }
73}
74
75function splitCommand(command) {
76 const matches = String(command || '').match(/"[^"]*"|'[^']*'|\S+/g) || [];

Callers 1

assessReadinessFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected