Skip to content

Commit f2758e5

Browse files
committed
Fixed some error messages and releasing the semaphore on a git open repo error.
1 parent 791965c commit f2758e5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pipeline/git.go

+4-1
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,10 @@ func updateAllCurrentPipelines() {
123123
sem <- 1
124124
r, err := git.PlainOpen(pipe.Repo.LocalDest)
125125
if err != nil {
126-
gaia.Cfg.Logger.Debug("error while opening repo: ", pipe.Repo.LocalDest, err.Error())
126+
// We don't stop gaia working because of an automated update failed.
127+
// So we just move on.
128+
gaia.Cfg.Logger.Error("error while opening repo: ", pipe.Repo.LocalDest, err.Error())
129+
<-sem
127130
return
128131
}
129132
gaia.Cfg.Logger.Debug("checking pipeline: ", pipe.Name)

0 commit comments

Comments
 (0)