diff options
-rw-r--r-- | lib/util/git/index.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/util/git/index.ts b/lib/util/git/index.ts index 806bda394b9..1ab24e34acf 100644 --- a/lib/util/git/index.ts +++ b/lib/util/git/index.ts @@ -377,6 +377,10 @@ export function isCloned(): boolean { export async function syncGit(): Promise<void> { if (gitInitialized) { + // istanbul ignore if + if (process.env.RENOVATE_X_CLEAR_HOOKS) { + await git.raw(['config', 'core.hooksPath', '/dev/null']); + } return; } gitInitialized = true; |