the /repos/{owner}/{repo}/commits interface. if sha use branch as parameter value can bring about commit count is incorrect #7125

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

Originally created by @QuietClickCode on GitHub (Apr 7, 2021).

  • Gitea version (or commit ref): 1.11.0+dev-371-gd9c67a8c9
  • Git version: 1.11.0+dev-371-gd9c67a8c9
  • Operating system:win 10.0.18362
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
  • Log gist:

Description

...
the /repos/{owner}/{repo}/commits interface. if sha use branch as parameter value can bring about commit count is incorrect

Screenshots

微信图片_20210407153000
1
2

Originally created by @QuietClickCode on GitHub (Apr 7, 2021). <!-- NOTE: If your issue is a security concern, please send an email to security@gitea.io instead of opening a public issue --> <!-- 1. Please speak English, this is the language all maintainers can speak and write. 2. Please ask questions or configuration/deploy problems on our Discord server (https://discord.gg/gitea) or forum (https://discourse.gitea.io). 3. Please take a moment to check that your issue doesn't already exist. 4. Make sure it's not mentioned in the FAQ (https://docs.gitea.io/en-us/faq) 5. Please give all relevant information below for bug reports, because incomplete details will be handled as an invalid report. --> - Gitea version (or commit ref): 1.11.0+dev-371-gd9c67a8c9 - Git version: 1.11.0+dev-371-gd9c67a8c9 - Operating system:win 10.0.18362 <!-- Please include information on whether you built gitea yourself, used one of our downloads or are using some other package --> <!-- Please also tell us how you are running gitea, e.g. if it is being run from docker, a command-line, systemd etc. ---> <!-- If you are using a package or systemd tell us what distribution you are using --> - Database (use `[x]`): - [ ] PostgreSQL - [ ] MySQL - [ ] MSSQL - [ ] SQLite - Can you reproduce the bug at https://try.gitea.io: - [ ] Yes (provide example URL) - [ ] No - Log gist: <!-- It really is important to provide pertinent logs --> <!-- Please read https://docs.gitea.io/en-us/logging-configuration/#debugging-problems --> <!-- In addition, if your problem relates to git commands set `RUN_MODE=dev` at the top of app.ini --> ## Description <!-- If using a proxy or a CDN (e.g. CloudFlare) in front of gitea, please disable the proxy/CDN fully and connect to gitea directly to confirm the issue still persists without those services. --> ... the /repos/{owner}/{repo}/commits interface. if sha use branch as parameter value can bring about commit count is incorrect ## Screenshots <!-- **If this issue involves the Web Interface, please include a screenshot** --> ![微信图片_20210407153000](https://user-images.githubusercontent.com/33307916/113828120-9f74b500-97b6-11eb-8ee7-d78c14d4c7d3.png) ![1](https://user-images.githubusercontent.com/33307916/113828438-f5495d00-97b6-11eb-8b00-21c5b4800b50.png) ![2](https://user-images.githubusercontent.com/33307916/113828443-f7abb700-97b6-11eb-958e-b138a3be7c28.png)
GiteaMirror added the issue/stale label 2025-11-02 07:16:22 -06:00
Author
Owner

@zeripath commented on GitHub (Apr 8, 2021):

1.11 is extremely old. It's possible we have already fixed this on master. Can you replicate the problem on try?

@zeripath commented on GitHub (Apr 8, 2021): 1.11 is extremely old. It's possible we have already fixed this on master. Can you replicate the problem on try?
Author
Owner

@stale[bot] commented on GitHub (Jun 9, 2021):

This issue has been automatically marked as stale because it has not had recent activity. I am here to help clear issues left open even if solved or waiting for more insight. This issue will be closed if no further activity occurs during the next 2 weeks. If the issue is still valid just add a comment to keep it alive. Thank you for your contributions.

@stale[bot] commented on GitHub (Jun 9, 2021): This issue has been automatically marked as stale because it has not had recent activity. I am here to help clear issues left open even if solved or waiting for more insight. This issue will be closed if no further activity occurs during the next 2 weeks. If the issue is still valid just add a comment to keep it alive. Thank you for your contributions.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#7125