Commit f24086c2 authored by ZTGAME\jiangpengqing's avatar ZTGAME\jiangpengqing

gitlab 自定义端口问题

parent 22bb3615
Pipeline #35 passed with stages
in 21 seconds
......@@ -143,7 +143,7 @@ function getRepoWithoutGitExtension(repo) {
function normalizeGitUrlToHttpsForCustomPort(repo,port) {
var pos = repo.indexOf('@');
if (pos == -1) return repo;
if (pos == -1) return repo.replace(/:[0-9]+/g, ':'+port);;
//return 'https://' + repo.substr(pos + 1).replace(/:[0-9]+/g, '').replace(/:/g, '/');
return 'https://' + repo.substr(pos + 1).replace(/:[0-9]+/g, ':'+port);
}
......
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