do not panic if git pull fails

This commit is contained in:
2021-11-20 16:15:00 +01:00
parent 16d45fe662
commit 7d3da02bf2

View File

@@ -512,7 +512,9 @@ func (b *BuildManager) syncWorker() {
cmd = exec.Command("sh", "-c", "cd "+gitPath+" && git pull")
res, err = cmd.CombinedOutput()
log.Debug(string(res))
check(err)
if err != nil {
log.Warningf("Failed to update git repo %s: %v", gitDir, err)
}
}
}