forked from toolshed/abra
fix
This commit is contained in:
parent
154a95ac5b
commit
a82cdbf150
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user