git icon indicating copy to clipboard operation
git copied to clipboard

Fixes incorrect URL for submodules that specify the remote port

Open Governa opened this issue 7 years ago • 2 comments

If the repo's host is in urlPrefix, test if there is a number after the ":" and, if there is one, consider it as a port number and ignore it in the URL returned.

Fixes go-gitea/gitea#2775

Governa avatar Jan 26 '18 16:01 Governa

@Governa if you could add some tests, it's better!

lunny avatar Jan 27 '18 02:01 lunny

What is my username is 1234 ? 🤔 [email protected]:1234/my_project.git should still validate to 1234/my_project.git

bkcsoft avatar Feb 10 '18 06:02 bkcsoft