Browse Source
fix(git): Reduce git concurrency to avoid lock file conflicts. (#6511)
pull/6551/head
matt1097
1 year ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
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)) { |
|
|
|