forked from ALHP/ALHP.GO
do not panic if git pull fails
This commit is contained in:
4
main.go
4
main.go
@@ -512,7 +512,9 @@ func (b *BuildManager) syncWorker() {
|
|||||||
cmd = exec.Command("sh", "-c", "cd "+gitPath+" && git pull")
|
cmd = exec.Command("sh", "-c", "cd "+gitPath+" && git pull")
|
||||||
res, err = cmd.CombinedOutput()
|
res, err = cmd.CombinedOutput()
|
||||||
log.Debug(string(res))
|
log.Debug(string(res))
|
||||||
check(err)
|
if err != nil {
|
||||||
|
log.Warningf("Failed to update git repo %s: %v", gitDir, err)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user