MCPcopy Create free account
hub / github.com/Botloader/botloader / isInGitRepository

Function isInGitRepository

frontend/scripts/test.js:22–29  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

20let argv = process.argv.slice(2);
21
22function isInGitRepository() {
23 try {
24 execSync('git rev-parse --is-inside-work-tree', { stdio: 'ignore' });
25 return true;
26 } catch (e) {
27 return false;
28 }
29}
30
31function isInMercurialRepository() {
32 try {

Callers 1

test.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected