diff --git a/pkg/recipe/recipe.go b/pkg/recipe/recipe.go index b11c5efd..c81d693f 100644 --- a/pkg/recipe/recipe.go +++ b/pkg/recipe/recipe.go @@ -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,