The interface to get submission comparison information is not as expected #13788

Closed
opened 2025-11-02 10:53:16 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @inbjo on GitHub (Dec 5, 2024).

Description

Hi, everyone.
I tried to use this API interface /repos/{owner}/{repo}/compare/{basehead}

The basehead parameter I passed into branch 1... Branch 2 returns normal results, but I pass in two different commit sha1 hashes from the same branch and it returns 404.

2024-12-05_15-45

I want to use this interface to get the files modified between two commit records under the same branch. But the result is not what I expected this seems to be a bug. if I am not using it the right way please let me know, thanks!

Gitea Version

1.22.3

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

No response

Screenshots

No response

Git Version

2.38.1

Operating System

centos7

How are you running Gitea?

Managing services with systemd via officially compiled binaries

Database

MySQL/MariaDB

Originally created by @inbjo on GitHub (Dec 5, 2024). ### Description Hi, everyone. I tried to use this API interface /repos/{owner}/{repo}/compare/{basehead} The basehead parameter I passed into branch 1... Branch 2 returns normal results, but I pass in two different commit sha1 hashes from the same branch and it returns 404. ![2024-12-05_15-45](https://github.com/user-attachments/assets/89073b00-ac10-4b5d-8f56-116685815140) I want to use this interface to get the files modified between two commit records under the same branch. But the result is not what I expected this seems to be a bug. if I am not using it the right way please let me know, thanks! ### Gitea Version 1.22.3 ### Can you reproduce the bug on the Gitea demo site? Yes ### Log Gist _No response_ ### Screenshots _No response_ ### Git Version 2.38.1 ### Operating System centos7 ### How are you running Gitea? Managing services with systemd via officially compiled binaries ### Database MySQL/MariaDB
GiteaMirror added the type/bug label 2025-11-02 10:53:16 -06:00
Author
Owner

@ExplodingDragon commented on GitHub (Dec 5, 2024):

Duplicate of https://github.com/go-gitea/gitea/issues/30655

@ExplodingDragon commented on GitHub (Dec 5, 2024): Duplicate of https://github.com/go-gitea/gitea/issues/30655
Author
Owner

@wxiaoguang commented on GitHub (Dec 12, 2024):

-> Make API "compare" accept commit IDs #32801

@wxiaoguang commented on GitHub (Dec 12, 2024): -> Make API "compare" accept commit IDs #32801
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#13788