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

Function isRootGitRepo

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

Source from the content-addressed store, hash-verified

18
19/** @returns Whether or not the provided directory has a `.git` subdirectory in it. */
20const isRootGitRepo = (dir: string): Promise<boolean> => {
21 return pathExists(path.join(dir, ".git"));
22};
23
24/** @returns Whether or not this directory or a parent directory has a `.git` directory. */
25const isInsideGitRepo = async (dir: string): Promise<boolean> => {

Callers 1

initializeGitFunction · 0.85

Calls 1

pathExistsFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…