Skip to content

Commit

Permalink
Merge pull request #3 from Q42Philips/bugfix/tag-error-handling
Browse files Browse the repository at this point in the history
Do some pointer magic to make it work maybe?
  • Loading branch information
EDeijl authored May 13, 2022
2 parents d6084eb + 41b14a0 commit 3f24990
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/gitlogic/tags.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ func WaitForTags(ctx context.Context, c Config, commit plumbing.Hash, repo *git.
})
if err != nil && err != git.NoErrAlreadyUpToDate {
// If the tag is removed from the remote, we should remove it too
var errNoMatching = git.NoMatchingRefSpecError{}
var errNoMatching = &git.NoMatchingRefSpecError{}
if isRemoteMissing := errors.As(err, &errNoMatching); isRemoteMissing {
return errors.Wrap(err, "failed to wait because one of the tags disappeared")
}
Expand Down

0 comments on commit 3f24990

Please sign in to comment.