Commit 624297bc authored by Karol Herbst's avatar Karol Herbst Committed by Nicolas Giard

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

parent 9f58a08f
......@@ -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}`
}
......
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