ac2d97cb61
This is a follow-up to https://github.com/go-gitea/gitea/pull/33097. When linking a submodule at a commit in either the repo view, or a diff when adding a new submodule, link to the tree view of that submodules intead of the individual commit. This shows the user the full tree, instead of the diff of the commit. This makes the assumption that the tree for a given SHA is at `<repo_url>/tree/<sha>`. This URL format is supported by both Github & Gitlab, but not Gitea. To fix this, add a redirect from `<username>/<repo>/tree/<ref>` to `<username>/<repo>/src/<ref>`, so that Gitea can support this URL structure. |
||
---|---|---|
.. | ||
testdata/academic-module | ||
csv.go | ||
csv_test.go | ||
gitdiff.go | ||
gitdiff_test.go | ||
highlightdiff.go | ||
highlightdiff_test.go | ||
main_test.go | ||
submodule.go | ||
submodule_test.go |