Skip to content

Wrong link to submodule in WebUI #15178

Open
@steled

Description

@steled
  • Gitea version (or commit ref): 1.13.6
  • Git version: 2.20.1
  • Operating system:
$ uname -amrs
Linux control01 5.10.17-v7+ #1403 SMP Mon Feb 22 11:29:51 GMT 2021 armv7l GNU/Linux
$ cat /etc/os-release
PRETTY_NAME="Raspbian GNU/Linux 10 (buster)"
NAME="Raspbian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
  • used gitea package: gitea-1.13.6-linux-arm-6
  • gitea usage: systemd
  • distribution: Raspbian 10
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
  • Log gist:

Description

Hi, I updated from version 1.12.6 to 1.13.6 and have the following problem now.
My gitea is configured for HTTPS and my submodule is added via SSH.
From the main repo the link to the submodule is only HTTP so I can't access
my submodule from the web UI. In version 1.12.6 this worked as expected.

See below some informations:

$ git config --file=.gitmodules -l
submodule.terraform.path=terraform
[email protected]:steled/terraform.git
submodule.terraform.update=rebase

The web gui is showing http://172.16.4.20/steled/terraform but should show https://172.16.4.20/steled/terraform

SSH_DOMAIN = %(DOMAIN)s
PROTOCOL = https
DOMAIN = ***.duckdns.org
HTTP_PORT = 443
ROOT_URL = %(PROTOCOL)s://%(DOMAIN)s:%(HTTP_PORT)s/

When I manually set SSH_DOMAIN to 172.16.4.20 the WebUI shows https://***.duckdns.org/steled/terraform and the clone link shows [email protected]:steled/terraform.git

Would be great if you can have a look at.

Thanks and best regards

Screenshots

gitea_submodule_link

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions