fix: catch errors here too
continuous-integration/drone/push Build is failing Details

See #266
This commit is contained in:
decentral1se 2023-02-02 20:26:19 +01:00
parent bf79552204
commit 2a88491d7c
Signed by: decentral1se
GPG Key ID: 03789458B3D0C410
1 changed files with 3 additions and 3 deletions

View File

@ -616,10 +616,10 @@ func EnsureUpToDate(recipeName string) error {
return err
}
fetchOpts := &git.FetchOptions{
Tags: git.AllTags,
fetchOpts := &git.FetchOptions{Tags: git.AllTags}
if err := repo.Fetch(fetchOpts); err != nil {
return err
}
repo.Fetch(fetchOpts)
opts := &git.PullOptions{
Force: true,