Skip to content

Incorrect clone URL in connection with port

Summary

Incorrect clone URL in connection with port (port not shown)

Steps to reproduce

Setup a Gitlab_CE on a port other then 443 with ssl example: "gitlab_address": "https://git.example.com:444"

then check with gitlab-ctl show-config

"gitlab-rails": "gitlab_host": "git.example.com", "gitlab_https": true, "gitlab_port": 444, "external-url": "https://git.example.com:444",

Example Project

What is the current bug behavior?

The chone Url should be now something line : https://git.example.com:444/example/example.git and not https://git.example.com/example/example.git

What is the expected correct behavior?

https://git.example.com:444/example/example.git

I tried to fix it myself but I can not find the method that produces this code:

<input type="text" name="http_project_clone" id="http_project_clone" value="https://git.example.com/example/example.git" class="js-select-on-focus form-control qa-http-clone-url" readonly="readonly" aria-label="Repository clone URL">