go-gitea / gitea

Git with a cup of tea! Painless self-hosted all-in-one software development service, including Git hosting, code review, team collaboration, package registry and CI/CD
https://gitea.com
MIT License
45.24k stars 5.5k forks source link

Submodules not linked if file format not in default order #32568

Closed AdamMajer closed 1 day ago

AdamMajer commented 2 days ago

Description

A submodule that is listed in .gitmodules as,

[submodule "jakarta-servlet"]
        url = ../../ALP-pool/jakarta-servlet
        path = jakarta-servlet

is not linked in the repository view. A submodule that is listed in the other order is linked correctly.

[submodule "jakarta-servlet"]
        path = jakarta-servlet
        url = ../../ALP-pool/jakarta-servlet

The gitmodules.txt doesn't seem to impose any particular order on values.

NOTE: Demo site is down at this second so can't check if I can reproduce it there.

Gitea Version

1.22.2

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

No response

Screenshots

image

Git Version

No response

Operating System

No response

How are you running Gitea?

It's built and running with systemd, using core git tools

Database

PostgreSQL

wxiaoguang commented 2 days ago

Bug ...........

image