mirror of
https://github.com/go-gitea/gitea.git
synced 2026-11-25 07:27:14 +00:00
Minor code fix [CI SKIP]
This commit is contained in:
1 parent
152e715999
commit
c2afdf2192
3 files changed
+10
-4
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user