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