Skip to content
This repository has been archived by the owner on Apr 12, 2019. It is now read-only.

Fixes incorrect URL for submodules that specify the remote port #108

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Governa
Copy link

@Governa Governa commented Jan 26, 2018

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

  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

Signed-off-by: Fernando Governatore <[email protected]>
@lunny
Copy link
Member

lunny commented Jan 27, 2018

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

@bkcsoft
Copy link
Member

bkcsoft commented Feb 10, 2018

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

@lunny lunny mentioned this pull request Dec 9, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Incorrect link for submodules that specify the remote port
4 participants