Mirror Repository have error commit count after sync #1466

Closed
opened 2025-11-02 04:01:45 -06:00 by GiteaMirror · 4 comments
Owner

Originally created by @qianlongzt on GitHub (Jan 18, 2018).

sorry for my pool english.

  • Gitea version (or commit ref): 1.3.2 built with: bindata, sqlite
  • Git version: 2.15.1
  • Operating system: Ubuntu16.04 LTS
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io/qianlongzt/HDU-Guide/commits/branch/master
    • Yes (provide example URL)
    • No
    • Not relevant
  • Log gist:

Description

First Migration, commits count is right, if up-stream have more commits, after sync, mirror repository have error commit count

Screenshots

image

Originally created by @qianlongzt on GitHub (Jan 18, 2018). <!-- 1. Please speak English, this is the language all of us can speak and write. 2. Please ask questions or configuration/deploy problems on our Discord server (https://discord.gg/NsatcWJ) or forum (https://discourse.gitea.io). 3. Please take a moment to check that your issue doesn't already exist. 4. Please give all relevant information below for bug reports, because incomplete details will be handled as an invalid report. --> sorry for my pool english. - Gitea version (or commit ref): 1.3.2 built with: bindata, sqlite - Git version: 2.15.1 - Operating system: Ubuntu16.04 LTS - Database (use `[x]`): - [ ] PostgreSQL - [x] MySQL - [ ] MSSQL - [ ] SQLite - Can you reproduce the bug at https://try.gitea.io/qianlongzt/HDU-Guide/commits/branch/master - [x] Yes (provide example URL) - [ ] No - [ ] Not relevant - Log gist: ## Description First Migration, commits count is right, if up-stream have more commits, after sync, mirror repository have error commit count ## Screenshots ![image](https://user-images.githubusercontent.com/18493471/35088310-5d4f8c4a-fc6e-11e7-9788-9bf7f77bc52a.png) <!-- **If this issue involves the Web Interface, please include a screenshot** -->
GiteaMirror added the type/bug label 2025-11-02 04:01:45 -06:00
Author
Owner

@lafriks commented on GitHub (Jan 18, 2018):

Caching on mirror sync seems like are not reset

@lafriks commented on GitHub (Jan 18, 2018): Caching on mirror sync seems like are not reset
Author
Owner

@qianlongzt commented on GitHub (Jan 18, 2018):

image

after a lot of sync, the count of commit is right. I set sync every hours(1h0m0s)

@qianlongzt commented on GitHub (Jan 18, 2018): ![image](https://user-images.githubusercontent.com/18493471/35106402-159814e0-fca9-11e7-9d5d-dca0b81f13f6.png) after a lot of sync, the count of commit is right. I set sync every hours(1h0m0s)
Author
Owner

@lafriks commented on GitHub (Jan 18, 2018):

Commit count is cached four 16 hours by default, so it will display correct count eventually

@lafriks commented on GitHub (Jan 18, 2018): Commit count is cached four 16 hours by default, so it will display correct count eventually
Author
Owner

@cez81 commented on GitHub (Oct 21, 2018):

@lafriks Resolved in https://github.com/go-gitea/gitea/pull/4720

@cez81 commented on GitHub (Oct 21, 2018): @lafriks Resolved in https://github.com/go-gitea/gitea/pull/4720
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#1466