diff --git a/pkg/git/read.go b/pkg/git/read.go index 9e33dcfc9..038ea6f4a 100644 --- a/pkg/git/read.go +++ b/pkg/git/read.go @@ -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 }