MCPcopy Index your code
hub / github.com/triggerdotdev/trigger.dev / isGitInstalled

Function isGitInstalled

packages/cli/src/utils/git.ts:10–17  ·  view source on GitHub ↗
(dir: string)

Source from the content-addressed store, hash-verified

8import { pathExists, removeFile } from "./fileSystem";
9
10const isGitInstalled = (dir: string): boolean => {
11 try {
12 execSync("git --version", { cwd: dir });
13 return true;
14 } catch (_e) {
15 return false;
16 }
17};
18
19/** @returns Whether or not the provided directory has a `.git` subdirectory in it. */
20const isRootGitRepo = (dir: string): Promise<boolean> => {

Callers 1

initializeGitFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…