-
-
Notifications
You must be signed in to change notification settings - Fork 6k
Open
Description
Description
Steps to reproduce:
- Create a new repository and select sha256 as Object Format.
- Create a pull request with at least 2 commits.
- Navigate to the pull request and select tab "Files Changed". (
https://<domain>/<organization>/<repo>/pulls/1/files
) - Open the "Filter by commit" dropdown menu and select a single commit.
- It will redirect to
https://<domain>/<organization>/<repo>/pulls/1/commits/e2fab1b40c2b6cddc45a89d30c4e712a523adf7de82c8a944e19c5476bb304a6?...
.
Expected Behavior:
It shows the correct diffs of the selected commit.
Actual Behavior:
It shows a 404 page without the tab bar.

Notes
- The same procedure works correctly with sha1 repos.
- While debugging I found, that if I shorten the redirect url to half the hash, it will at least show the tab bar, but still not find the commit.

Gitea Version
1.24.4
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
No response
Screenshots
No response
Git Version
2.49.1
Operating System
Ubuntu 24.04.2 LTS
How are you running Gitea?
Run from docker
Database
PostgreSQL