Skip to content

Commit 07ac201

Browse files
committed
fix: sync update time from mirror repo.
1 parent d5a67a1 commit 07ac201

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

models/repo_mirror.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -271,8 +271,6 @@ func SyncMirrors() {
271271
if err != nil {
272272
log.Error(2, "GetLatestCommitDate [%s]: %v", m.RepoID, err)
273273
continue
274-
} else if commitDate.Before(*m.Repo.UpdatedUnix.AsTimePtr()) {
275-
continue
276274
}
277275

278276
if _, err = x.Exec("UPDATE repository SET updated_unix = ? WHERE id = ?", commitDate.Unix(), m.RepoID); err != nil {

0 commit comments

Comments
 (0)