Skip to content

Commit e33d9e7

Browse files
committed
vendor: rename "gogits" to "gogs"
1 parent aff4208 commit e33d9e7

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

84 files changed

+25
-12
lines changed

README.md

+8-8

README_ZH.md

+4-4

models/mirror.go

+13
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,15 @@ func SyncMirrors() {
320320
continue
321321
}
322322

323+
// TODO: Work on #2017 and #4528 together
324+
// 1. Get commits after last update time
325+
// 2. Simulate push event for new commits, see models/repo_editor.go:164
326+
// This automatically triggers the "push" webhook
327+
328+
// ******************************
329+
// EDIT AREA - START
330+
// ******************************
331+
323332
// Get latest commit date and compare to current repository updated time,
324333
// update if latest commit date is newer.
325334
commitDate, err := git.GetLatestCommitDate(m.Repo.RepoPath(), "")
@@ -330,6 +339,10 @@ func SyncMirrors() {
330339
continue
331340
}
332341

342+
// ******************************
343+
// EDIT AREA - END
344+
// ******************************
345+
333346
if _, err = x.Exec("UPDATE repository SET updated_unix = ? WHERE id = ?", commitDate.Unix(), m.RepoID); err != nil {
334347
log.Error(2, "Update repository 'updated_unix' [%s]: %v", m.RepoID, err)
335348
continue

0 commit comments

Comments
 (0)