Skip to content

Commit

Permalink
fix: RENOVATE_X_CLEAR_HOOKS
Browse files Browse the repository at this point in the history
  • Loading branch information
rarkins committed May 9, 2023
1 parent 3f33995 commit 77bd389
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/util/git/index.ts
Expand Up @@ -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;
Expand Down

0 comments on commit 77bd389

Please sign in to comment.