()
| 7 | * This function should only be used where such false positives are acceptable. |
| 8 | */ |
| 9 | export 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 | } |
no outgoing calls
no test coverage detected