From c2afdf2192b9f0287968e29160e30a45a3ff1339 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Wed, 31 Aug 2016 04:31:53 -0700 Subject: Minor code fix [CI SKIP] --- models/migrations/migrations.go | 1 + models/repo_mirror.go | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'models') diff --git a/models/migrations/migrations.go b/models/migrations/migrations.go index 42d93edd..edd07a66 100644 --- a/models/migrations/migrations.go +++ b/models/migrations/migrations.go @@ -59,6 +59,7 @@ type Version struct { // If you want to "retire" a migration, remove it from the top of the list and // update _MIN_VER_DB accordingly var migrations = []Migration{ + // v0 -> v4: before 0.6.0 -> 0.7.33 NewMigration("fix locale file load panic", fixLocaleFileLoadPanic), // V4 -> V5:v0.6.0 NewMigration("trim action compare URL prefix", trimCommitActionAppUrlPrefix), // V5 -> V6:v0.6.3 NewMigration("generate issue-label from issue", issueToIssueLabel), // V6 -> V7:v0.6.4 diff --git a/models/repo_mirror.go b/models/repo_mirror.go index 53014e9d..7274258e 100644 --- a/models/repo_mirror.go +++ b/models/repo_mirror.go @@ -133,7 +133,7 @@ func (m *Mirror) runSync() bool { } if _, stderr, err := process.ExecDir( - timeout, repoPath, fmt.Sprintf("runSync: %s", repoPath), + timeout, repoPath, fmt.Sprintf("Mirror.runSync: %s", repoPath), "git", gitArgs...); err != nil { desc := fmt.Sprintf("Fail to update mirror repository '%s': %s", repoPath, stderr) log.Error(4, desc) @@ -144,7 +144,7 @@ func (m *Mirror) runSync() bool { } if m.Repo.HasWiki() { if _, stderr, err := process.ExecDir( - timeout, wikiPath, fmt.Sprintf("runSync: %s", wikiPath), + timeout, wikiPath, fmt.Sprintf("Mirror.runSync: %s", wikiPath), "git", "remote", "update", "--prune"); err != nil { desc := fmt.Sprintf("Fail to update mirror wiki repository '%s': %s", wikiPath, stderr) log.Error(4, desc) -- cgit v1.2.3