mirror of
https://github.com/go-gitea/git.git
synced 2026-07-25 12:46:00 -04:00
[PR #108] Fixes incorrect URL for submodules that specify the remote port #114
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/go-gitea/git/pull/108
Author: @Governa
Created: 1/26/2018
Status: 🔄 Open
Base:
master← Head:master📝 Commits (1)
0ef46aeFixes incorrect URL for submodules that specify the remote port📊 Changes
1 file changed (+12 additions, -2 deletions)
View changed files
📝
submodule.go(+12 -2)📄 Description
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
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.