MCPcopy
hub / github.com/prisma/prisma / maybeInGitHook

Function maybeInGitHook

packages/internals/src/utils/maybeInGitHook.ts:9–16  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7 * This function should only be used where such false positives are acceptable.
8 */
9export function maybeInGitHook(): boolean {
10 return (
11 process.env.GIT_EXEC_PATH !== undefined ||
12 process.env.GIT_DIR !== undefined ||
13 process.env.GIT_INDEX_FILE !== undefined ||
14 process.env.GIT_PREFIX !== undefined
15 )
16}

Callers 1

handleNpsSurveyImplFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected