0
0
forked from toolshed/abra
This commit is contained in:
p4u1 2025-03-07 15:13:37 +01:00
parent 154a95ac5b
commit a82cdbf150

View File

@ -2,6 +2,7 @@ package recipe
import ( import (
"encoding/json" "encoding/json"
"errors"
"fmt" "fmt"
"io/ioutil" "io/ioutil"
"net/url" "net/url"
@ -11,6 +12,8 @@ import (
"strconv" "strconv"
"strings" "strings"
"github.com/go-git/go-git/v5"
"coopcloud.tech/abra/pkg/catalogue" "coopcloud.tech/abra/pkg/catalogue"
"coopcloud.tech/abra/pkg/config" "coopcloud.tech/abra/pkg/config"
"coopcloud.tech/abra/pkg/formatter" "coopcloud.tech/abra/pkg/formatter"
@ -167,7 +170,7 @@ func Get(name string) Recipe {
} }
dirty, err := r.IsDirty() 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) log.Fatalf("failed to check git status of %s: %s", r.Name, err)
} }
r.Dirty = dirty r.Dirty = dirty