Skip to content

Commit e1c5c62

Browse files
committed
fix(version): ignore already up to date error
1 parent c89eb71 commit e1c5c62

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cli/version/version_check.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ func CheckLatest(ctx context.Context) (string, error) {
5151
if err := repo.Fetch(&git.FetchOptions{
5252
Depth: 1,
5353
Tags: git.AllTags,
54-
}); err != nil {
54+
}); err != nil && !errors.Is(err, git.NoErrAlreadyUpToDate) {
5555
return "", err
5656
}
5757
} else if err != nil {

0 commit comments

Comments
 (0)