Skip to content

Commit

Permalink
fix: Revert fix(git): unset git-hooks after clone (#19880)
Browse files Browse the repository at this point in the history
  • Loading branch information
rarkins committed Jan 18, 2023
1 parent 57e1e64 commit c43a65f
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lib/util/git/index.ts
Expand Up @@ -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 */ {
Expand Down

0 comments on commit c43a65f

Please sign in to comment.