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 (
"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