forked from coop-cloud/abra
refactor: use SmallSHA
This commit is contained in:
parent
7460668ef4
commit
62441acf03
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue