refactor: use SmallSHA

This commit is contained in:
decentral1se 2021-12-30 00:41:21 +01:00
parent 7460668ef4
commit 62441acf03
Signed by: decentral1se
GPG Key ID: 03789458B3D0C410
2 changed files with 2 additions and 2 deletions

View File

@ -79,7 +79,7 @@ func DeployAction(c *cli.Context) error {
if err != nil {
logrus.Fatal(err)
}
version = head.String()[:8]
version = formatter.SmallSHA(head.String())
logrus.Warn("no versions detected, using latest commit")
if err := recipe.EnsureLatest(app.Type); err != nil {
logrus.Fatal(err)

View File

@ -378,7 +378,7 @@ func ChaosVersion(recipeName string) (string, error) {
return version, err
}
version = head.String()[:8]
version = formatter.SmallSHA(head.String())
recipeDir := path.Join(config.RECIPES_DIR, recipeName)
isClean, err := gitPkg.IsClean(recipeDir)