Closed
Description
- Gitea version (or commit ref): a71cabb
- Git version: 2.22.0
- Operating system: Windows Server 2012 R2
- 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
The submodule link can only work when it's added at the project root directory. If the submodule is added in a directory then Gitea will fail to generate link.
Here is the repo with the submodule added at the "subdir" directory
https://try.gitea.io/jacktseng/submodule_at_subdir
Here is another branch in the same repo but with additional submodule added at root
https://try.gitea.io/jacktseng/submodule_at_subdir/src/branch/trick
You can find in the master branch Gitea doesn't generate the link for the submodule. But in the trick branch, Gitea can generate the link for both the submodule at root and for the one at "subdir".
...