From 7d3da02bf214023b4e5f3afa911fcf7828ad86b5 Mon Sep 17 00:00:00 2001 From: Giovanni Harting <539@idlegandalf.com> Date: Sat, 20 Nov 2021 16:15:00 +0100 Subject: [PATCH] do not panic if git pull fails --- main.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index 0c0abf0..76bca0b 100644 --- a/main.go +++ b/main.go @@ -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) + } } }