From f02b7ba94e152dfe9c0d0bd500a912ec2f160dbf Mon Sep 17 00:00:00 2001 From: matt1097 <48395861+matt1097@users.noreply.github.com> Date: Fri, 16 Jun 2023 17:07:31 -0400 Subject: [PATCH] fix(git): Reduce git concurrency to avoid lock file conflicts. (#6511) --- server/modules/storage/git/storage.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/modules/storage/git/storage.js b/server/modules/storage/git/storage.js index 32638c66..62401b0d 100644 --- a/server/modules/storage/git/storage.js +++ b/server/modules/storage/git/storage.js @@ -30,7 +30,7 @@ module.exports = { WIKI.logger.info('(STORAGE/GIT) Initializing...') this.repoPath = path.resolve(WIKI.ROOTPATH, this.config.localRepoPath) await fs.ensureDir(this.repoPath) - this.git = sgit(this.repoPath) + this.git = sgit(this.repoPath, { maxConcurrentProcesses: 1 }) // Set custom binary path if (!_.isEmpty(this.config.gitBinaryPath)) {