From c43a65f192a49ed9dcd29bae9ed16f55dac23985 Mon Sep 17 00:00:00 2001
From: Rhys Arkins <rhys@arkins.net>
Date: Wed, 18 Jan 2023 12:47:58 +0100
Subject: [PATCH] fix: Revert fix(git): unset git-hooks after clone (#19880)

---
 lib/util/git/index.ts | 2 --
 1 file changed, 2 deletions(-)

diff --git a/lib/util/git/index.ts b/lib/util/git/index.ts
index 33fc5cf430..365b2beaed 100644
--- a/lib/util/git/index.ts
+++ b/lib/util/git/index.ts
@@ -426,8 +426,6 @@ export async function syncGit(): Promise<void> {
       const emptyDirAndClone = async (): Promise<void> => {
         await fs.emptyDir(localDir);
         await git.clone(config.url, '.', opts);
-        // unset hooks to avoid post-checkout hooks, etc.
-        await git.raw(['config', '--unset', 'core.hooksPath']);
       };
       await gitRetry(() => emptyDirAndClone());
     } catch (err) /* istanbul ignore next */ {
-- 
GitLab