[PR #108] Fixes incorrect URL for submodules that specify the remote port #114

Open
opened 2026-02-16 10:24:09 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-gitea/git/pull/108
Author: @Governa
Created: 1/26/2018
Status: 🔄 Open

Base: masterHead: master


📝 Commits (1)

  • 0ef46ae Fixes 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.

## 📋 Pull Request Information **Original PR:** https://github.com/go-gitea/git/pull/108 **Author:** [@Governa](https://github.com/Governa) **Created:** 1/26/2018 **Status:** 🔄 Open **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (1) - [`0ef46ae`](https://github.com/go-gitea/git/commit/0ef46ae157e9907e77367fc8851fb6ebcc8e73ea) Fixes incorrect URL for submodules that specify the remote port ### 📊 Changes **1 file changed** (+12 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `submodule.go` (+12 -2) </details> ### 📄 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 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-16 10:24:09 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: go-gitea/git#114