Browse Source

fix: setting git URL in git storage module if repository starts with http (#861)

pull/880/head
Karol Herbst 5 years ago
committed by Nicolas Giard
parent
commit
624297bc96
1 changed files with 1 additions and 1 deletions
  1. 2
      server/modules/storage/git/storage.js

2
server/modules/storage/git/storage.js

@ -112,7 +112,7 @@ module.exports = {
WIKI.logger.info('(STORAGE/GIT) Adding origin remote via HTTP/S...')
let originUrl = ''
if (_.startsWith(this.config.repoUrl, 'http')) {
originUrl = originUrl.replace('://', `://${this.config.basicUsername}:${this.config.basicPassword}@`)
originUrl = this.config.repoUrl.replace('://', `://${this.config.basicUsername}:${this.config.basicPassword}@`)
} else {
originUrl = `https://${this.config.basicUsername}:${this.config.basicPassword}@${this.config.repoUrl}`
}

Loading…
Cancel
Save