Skip to content

Commit

Permalink
hack
Browse files Browse the repository at this point in the history
  • Loading branch information
thockin committed Jun 9, 2024
1 parent 12a7d9c commit aaa3d47
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 3,059 deletions.
1 change: 1 addition & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -830,6 +830,7 @@ func main() {
updateSyncMetrics(metricKeyError, start)
if *flMaxFailures >= 0 && failCount >= *flMaxFailures {
// Exit after too many retries, maybe the error is not recoverable.
git.run.WithCallDepth(1).Run(ctx, git.root.String(), nil, "ls", "-lran")

Check failure on line 833 in main.go

View workflow job for this annotation

GitHub Actions / lint

Error return value of `(k8s.io/git-sync/pkg/cmd.Runner).Run` is not checked (errcheck)
log.Error(err, "too many failures, aborting", "failCount", failCount)
os.Exit(1)
}
Expand Down
Loading

0 comments on commit aaa3d47

Please sign in to comment.