aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorRhys Arkins <[email protected]>2023-05-09 17:50:22 +0200
committerRhys Arkins <[email protected]>2023-05-09 17:50:22 +0200
commit77bd389582cbd725720721c847cb4aa451febc50 (patch)
tree3042a35b1221898082b7f68917bb46b95ac22b74
parent3f33995ab92ff0cf188ea407e7cef3b58fea869c (diff)
downloadrenovate-77bd389582cbd725720721c847cb4aa451febc50.tar.gz
renovate-77bd389582cbd725720721c847cb4aa451febc50.zip
fix: RENOVATE_X_CLEAR_HOOKS35.75.0
-rw-r--r--lib/util/git/index.ts4
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;