MCPcopy Index your code
hub / github.com/Waishnav/devspace / checkGitAvailable

Function checkGitAvailable

src/cli.ts:376–384  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

374}
375
376function checkGitAvailable(): string {
377 try {
378 const { execFileSync } = require("node:child_process") as typeof import("node:child_process");
379 return execFileSync("git", ["--version"], { encoding: "utf8" }).trim();
380 } catch (error) {
381 const message = error instanceof Error ? error.message : String(error);
382 return `unavailable (${message})`;
383 }
384}
385
386function checkBashShell(): string {
387 try {

Callers 1

runDoctorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected