Link to submodule hosted by the same server via ssh missing port/prefix #5203

Closed
opened 2025-11-02 06:17:43 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @bwiethof on GitHub (Apr 7, 2020).

  • Gitea version (or commit ref): 1.10.0
  • Git version:
  • Operating system:
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant
  • Log gist:

Description

If a submodule is hosted by the same server as the parent repository and is linked via ssh, the link is missing the prefix/port.
In case of http linking, the created link is valid.

The screenshots showing the link for http in the left corner. With ssh the port/prefix is missing.

Screenshots

http
ssh

Originally created by @bwiethof on GitHub (Apr 7, 2020). <!-- NOTE: If your issue is a security concern, please send an email to security@gitea.io instead of opening a public issue --> <!-- 1. Please speak English, this is the language all maintainers can speak and write. 2. Please ask questions or configuration/deploy problems on our Discord server (https://discord.gg/gitea) or forum (https://discourse.gitea.io). 3. Please take a moment to check that your issue doesn't already exist. 4. Please give all relevant information below for bug reports, because incomplete details will be handled as an invalid report. --> - Gitea version (or commit ref): 1.10.0 - Git version: - Operating system: - Database (use `[x]`): - [ ] PostgreSQL - [ ] MySQL - [ ] MSSQL - [ ] SQLite - Can you reproduce the bug at https://try.gitea.io: - [ ] Yes (provide example URL) - [ ] No - [x] Not relevant - Log gist: ## Description If a submodule is hosted by the **same server** as the parent repository and is linked via ssh, the link is missing the prefix/port. In case of http linking, the created link is valid. The screenshots showing the link for http in the left corner. With ssh the port/prefix is missing. ## Screenshots ![http](https://user-images.githubusercontent.com/62421461/78654282-9bbd0280-78c4-11ea-80ad-dbcdd9f5193b.png) ![ssh](https://user-images.githubusercontent.com/62421461/78654295-9f508980-78c4-11ea-808b-d284982316ec.png) <!-- **If this issue involves the Web Interface, please include a screenshot** -->
GiteaMirror added the type/bug label 2025-11-02 06:17:43 -06:00
Author
Owner

@yoyoyonas commented on GitHub (Apr 8, 2020):

I can confirm this for v1.11.3.

@yoyoyonas commented on GitHub (Apr 8, 2020): I can confirm this for v1.11.3.
Author
Owner

@MatthieuParis commented on GitHub (Apr 13, 2020):

Same thing for v.1.11.4.
Seems to be linked to issue #2882

@MatthieuParis commented on GitHub (Apr 13, 2020): Same thing for v.1.11.4. Seems to be linked to issue #2882
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#5203