From 2a88491d7c87946c1a55bee604be6fd364f99c78 Mon Sep 17 00:00:00 2001 From: decentral1se Date: Thu, 2 Feb 2023 20:26:19 +0100 Subject: [PATCH] fix: catch errors here too See https://git.coopcloud.tech/coop-cloud/abra/pulls/266 --- pkg/recipe/recipe.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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,