Skip to content

Commit

Permalink
fix: ignore "already up-to-date"
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Kotzbauer <git@ckotzbauer.de>
  • Loading branch information
ckotzbauer committed Feb 1, 2022
1 parent b384003 commit 67ff2fe
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion internal/target/git/git.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package git

import (
"errors"
"os"
"time"

Expand Down Expand Up @@ -73,8 +74,9 @@ func (g *GitAccount) PrepareRepository(repo, path, branch string) {
Auth: g.tokenAuth(),
})

if err != nil {
if err != nil && !errors.Is(err, git.NoErrAlreadyUpToDate) {
logrus.WithError(err).Error("Pull failed")
return
}
}

Expand Down

0 comments on commit 67ff2fe

Please sign in to comment.