Skip to content

API /commits returns incorrect X-Total-Count when using since/until filters (v1.25) #35886

Description

@LemonHD1337

Description

When requesting commits with the since, until, and sha query parameters, the API correctly filters commits in the response body, but the X-Total-Count header still shows the total number of commits in the repository.

Image

Gitea Version

1.25.1

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

Ubuntu

How are you running Gitea?

Self-hosted instance
Installed using Docker on a Linux host
Gitea was not built manually — using a standard Docker image from Gitea.

Database

PostgreSQL

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions