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

Function findGitPath

packages/cli/src/commands/createIntegration.ts:481–497  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

479
480// Recursively search for a .git folder
481async function findGitPath(path: string): Promise<string | undefined> {
482 const gitPath = pathModule.join(path, ".git");
483
484 const gitPathExists = await pathExists(gitPath);
485
486 if (gitPathExists) {
487 return path;
488 }
489
490 const parentPath = pathModule.dirname(path);
491
492 if (parentPath === path) {
493 return undefined;
494 }
495
496 return findGitPath(parentPath);
497}
498
499async function updateJobCatalogWithNewIntegration(
500 monorepoPath: string,

Callers 1

Calls 1

pathExistsFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…