fix: ensure logging for status checks
Closes coop-cloud/organising#226.
This commit is contained in:
		| @ -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 | ||||
| } | ||||
|  | ||||
		Reference in New Issue
	
	Block a user