Unverified Commit f02b7ba9 authored by matt1097's avatar matt1097 Committed by GitHub

fix(git): Reduce git concurrency to avoid lock file conflicts. (#6511)

parent 4e5e8309
...@@ -30,7 +30,7 @@ module.exports = { ...@@ -30,7 +30,7 @@ module.exports = {
WIKI.logger.info('(STORAGE/GIT) Initializing...') WIKI.logger.info('(STORAGE/GIT) Initializing...')
this.repoPath = path.resolve(WIKI.ROOTPATH, this.config.localRepoPath) this.repoPath = path.resolve(WIKI.ROOTPATH, this.config.localRepoPath)
await fs.ensureDir(this.repoPath) await fs.ensureDir(this.repoPath)
this.git = sgit(this.repoPath) this.git = sgit(this.repoPath, { maxConcurrentProcesses: 1 })
// Set custom binary path // Set custom binary path
if (!_.isEmpty(this.config.gitBinaryPath)) { if (!_.isEmpty(this.config.gitBinaryPath)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment