Skip to content

Commit

Permalink
Remove unnecessary commit hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
Ndpnt committed Nov 26, 2024
1 parent 826304a commit 59e5435
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/archivist/recorder/repositories/git/git.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export default class Git {
process.env.GIT_AUTHOR_DATE = commitDate;
process.env.GIT_COMMITTER_DATE = commitDate;

summary = await this.git.commit(message, filePath);
summary = await this.git.commit(message, filePath, ['--no-verify']); // Skip pre-commit and commit-msg hooks, as commits are programmatically managed, to optimize performance
} finally {
process.env.GIT_AUTHOR_DATE = '';
process.env.GIT_COMMITTER_DATE = '';
Expand Down

0 comments on commit 59e5435

Please sign in to comment.