[PR #2730] [MERGED] Only update mirror last update after successful sync #16560

Closed
opened 2025-11-02 12:13:27 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/2730
Author: @cez81
Created: 10/17/2017
Status: Merged
Merged: 10/18/2017
Merged by: @lafriks

Base: masterHead: mirror_bug


📝 Commits (3)

  • adb873a Only update mirror last update after successful sync
  • cd3833c Merge branch 'master' into mirror_bug
  • af9d57b Merge branch 'master' into mirror_bug

📊 Changes

1 file changed (+2 additions, -1 deletions)

View changed files

📝 models/repo_mirror.go (+2 -1)

📄 Description

Fix #2535

Last updated was set every time the mirror object was updated. Change so that it's only updated after a successful sync.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/go-gitea/gitea/pull/2730 **Author:** [@cez81](https://github.com/cez81) **Created:** 10/17/2017 **Status:** ✅ Merged **Merged:** 10/18/2017 **Merged by:** [@lafriks](https://github.com/lafriks) **Base:** `master` ← **Head:** `mirror_bug` --- ### 📝 Commits (3) - [`adb873a`](https://github.com/go-gitea/gitea/commit/adb873aea3ef142238b1948b24abf4e27b4e1447) Only update mirror last update after successful sync - [`cd3833c`](https://github.com/go-gitea/gitea/commit/cd3833ca243a14edc578afc89e3226611265ccde) Merge branch 'master' into mirror_bug - [`af9d57b`](https://github.com/go-gitea/gitea/commit/af9d57b511dda01e8897bc55463cff004e8aefe0) Merge branch 'master' into mirror_bug ### 📊 Changes **1 file changed** (+2 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `models/repo_mirror.go` (+2 -1) </details> ### 📄 Description Fix #2535 Last updated was set every time the mirror object was updated. Change so that it's only updated after a successful sync. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-11-02 12:13:27 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#16560