-
-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Make submodule link work with relative path #35034
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Diff with ignoring spaces: https://github.com/go-gitea/gitea/pull/35034/files?w=1 |
Will this also fix the link in a PR where a submodule is changed? |
6e56355
to
ff266a7
Compare
I think yes, they use the same logic. |
https://demo.gitea.com/gnuman/rel_submodule_test/pulls/1/files This view is still broken. On my test instance with the patch, I see ![]() |
Hmm, the relative path is working, but the problem is that the pull's page doesn't share the same path layout, so "../../" is relative to "https://demo.gitea.com/gnuman/rel_submodule_test/pulls/1". Not easy to fix .... |
I have some ideas to fix now, but the changes will be many, and won't be able to backport. So I think we can have this fix first, and then refactor the "submodule relative path" problem later. |
Agreed. The relative-path submodule diff is not really a regression from 1.23.x since it wasn't available back then. |
* giteaofficial/main: Fix updating user visibility (go-gitea#35036) Fix git commit committer parsing and add some tests (go-gitea#35007) Refactor OpenIDConnect to support SSH/FullName sync (go-gitea#34978) Support base64-encoded agit push options (go-gitea#35037) Also display "recently pushed branch" alert on PR view (go-gitea#35001) Make submodule link work with relative path (go-gitea#35034) Update to go 1.24.5 (go-gitea#35031) Improve CLI commands (go-gitea#34973) Tweak eslint config, fix new issues (go-gitea#35019) # Conflicts: # templates/repo/commits_list.tmpl
Fix #35033