MCPcopy Index your code
hub / github.com/code-pushup/cli / getGitRoot

Function getGitRoot

packages/utils/src/lib/git/git.ts:7–9  ·  view source on GitHub ↗
(git = simpleGit())

Source from the content-addressed store, hash-verified

5import { toUnixPath } from '../transform.js';
6
7export function getGitRoot(git = simpleGit()): Promise<string> {
8 return git.revparse('--show-toplevel');
9}
10
11export async function getGitDefaultBranch(git = simpleGit()): Promise<string> {
12 try {

Callers 6

normalizeAuditOutputsFunction · 0.90
runSetupWizardFunction · 0.90
createRunnerFunctionFunction · 0.90
toGitPathFunction · 0.85
git.int.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected