Mirror: if no content is fetched, updated should not be changed #1549

Closed
opened 2025-11-02 04:04:37 -06:00 by GiteaMirror · 3 comments
Owner

Originally created by @Pofilo on GitHub (Feb 20, 2018).

  • Gitea version (or commit ref): 1.3.3
  • Git version: not relevant
  • Operating system: not relevant
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant
  • Log gist:
    not relevant

Description

In continuation of https://github.com/go-gitea/gitea/issues/1329 and of https://github.com/gogits/gogs/issues/4341 (of gogs project).

I think the updated time of mirrors in explore page should only be updated when someting changed in the mirror repo. This way, the firsts repos in the explore menu are only the most recently changed one.

They did it in this commit: https://github.com/gogits/gogs/commit/8d0417497b39aa196400d39c99bbd79cfb364f9f

Screenshots

not relevant

Originally created by @Pofilo on GitHub (Feb 20, 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. --> - Gitea version (or commit ref): 1.3.3 - Git version: _not relevant_ - Operating system: _not relevant_ - Database (use `[x]`): - [x] PostgreSQL - [x] MySQL - [x] MSSQL - [x] SQLite - Can you reproduce the bug at https://try.gitea.io: - [ ] Yes (provide example URL) - [ ] No - [x] Not relevant - Log gist: _not relevant_ ## Description In continuation of https://github.com/go-gitea/gitea/issues/1329 and of https://github.com/gogits/gogs/issues/4341 (of gogs project). I think the updated time of mirrors in explore page should only be updated when someting changed in the mirror repo. This way, the firsts repos in the explore menu are only the most recently changed one. They did it in this commit: https://github.com/gogits/gogs/commit/8d0417497b39aa196400d39c99bbd79cfb364f9f ## Screenshots _not relevant_
GiteaMirror added the type/enhancement label 2025-11-02 04:04:37 -06:00
Author
Owner

@techknowlogick commented on GitHub (Feb 21, 2018):

What's the policy on using code from gogs post-fork? If it's ok, I can create a PR with the linked code above.

I have >200 mirrored projects and so this ticket would be very useful for me.

@techknowlogick commented on GitHub (Feb 21, 2018): What's the policy on using code from gogs post-fork? If it's ok, I can create a PR with the linked code above. I have >200 mirrored projects and so this ticket would be very useful for me.
Author
Owner

@lunny commented on GitHub (Feb 21, 2018):

There are some time for mirrored repositories.

  1. Last Synced Time
  2. Lastest Commit Time
  3. Last Updated Time
    Maybe theses times should be treated different
@lunny commented on GitHub (Feb 21, 2018): There are some time for mirrored repositories. 1. Last Synced Time 2. Lastest Commit Time 3. Last Updated Time Maybe theses times should be treated different
Author
Owner

@appleboy commented on GitHub (Feb 21, 2018):

PR: https://github.com/go-gitea/gitea/pull/3551

@appleboy commented on GitHub (Feb 21, 2018): PR: https://github.com/go-gitea/gitea/pull/3551
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#1549