forked from forgejo/forgejo
Minor code fix [CI SKIP]
This commit is contained in:
parent
152e715999
commit
c2afdf2192
3 changed files with 10 additions and 4 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue