From a82cdbf1509196c0addc4febe430c4ca26f6bccf Mon Sep 17 00:00:00 2001 From: p4u1 Date: Fri, 7 Mar 2025 15:13:37 +0100 Subject: [PATCH] fix --- pkg/recipe/recipe.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkg/recipe/recipe.go b/pkg/recipe/recipe.go index 80ea8d29..728fadca 100644 --- a/pkg/recipe/recipe.go +++ b/pkg/recipe/recipe.go @@ -2,6 +2,7 @@ package recipe import ( "encoding/json" + "errors" "fmt" "io/ioutil" "net/url" @@ -11,6 +12,8 @@ import ( "strconv" "strings" + "github.com/go-git/go-git/v5" + "coopcloud.tech/abra/pkg/catalogue" "coopcloud.tech/abra/pkg/config" "coopcloud.tech/abra/pkg/formatter" @@ -167,7 +170,7 @@ func Get(name string) Recipe { } dirty, err := r.IsDirty() - if err != nil { + if err != nil && !errors.Is(err, git.ErrRepositoryNotExists) { log.Fatalf("failed to check git status of %s: %s", r.Name, err) } r.Dirty = dirty