diff options
author | Unknwon <u@gogs.io> | 2016-08-31 04:31:53 -0700 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2016-08-31 04:31:53 -0700 |
commit | c2afdf2192b9f0287968e29160e30a45a3ff1339 (patch) | |
tree | 6c26bc64e7dd14b88f0320592e8d6cf55b7a40fc /models/repo_mirror.go | |
parent | 152e715999bfec9859423034aec3df90442961f1 (diff) | |
download | gitea-c2afdf2192b9f0287968e29160e30a45a3ff1339.tar.gz gitea-c2afdf2192b9f0287968e29160e30a45a3ff1339.zip |
Minor code fix [CI SKIP]
Diffstat (limited to 'models/repo_mirror.go')
-rw-r--r-- | models/repo_mirror.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/models/repo_mirror.go b/models/repo_mirror.go index 53014e9d6d..7274258ea1 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) |