forked from coop-cloud/abra
fix: ensure logging for status checks
Closes coop-cloud/organising#226.
This commit is contained in:
parent
9b704b002b
commit
7f176d8e2f
|
@ -6,6 +6,7 @@ import (
|
|||
"coopcloud.tech/abra/pkg/config"
|
||||
"github.com/go-git/go-git/v5"
|
||||
"github.com/go-git/go-git/v5/plumbing"
|
||||
"github.com/sirupsen/logrus"
|
||||
)
|
||||
|
||||
// GetRecipeHead retrieves latest HEAD metadata.
|
||||
|
@ -44,5 +45,11 @@ func IsClean(recipeName string) (bool, error) {
|
|||
return false, err
|
||||
}
|
||||
|
||||
if status.String() != "" {
|
||||
logrus.Debugf("discovered git status for %s repository: %s", recipeName, status.String())
|
||||
} else {
|
||||
logrus.Debugf("discovered clean git status for %s repository", recipeName)
|
||||
}
|
||||
|
||||
return status.IsClean(), nil
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue