fix: don't overwrite recipeVersion #533
@ -110,6 +110,7 @@ var AppNewCommand = &cobra.Command{
|
|||||||
log.Fatal(err)
|
log.Fatal(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if recipeVersion == "" {
|
||||||
head, err := recipe.Head()
|
head, err := recipe.Head()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatalf("failed to retrieve latest commit for %s: %s", recipe.Name, err)
|
log.Fatalf("failed to retrieve latest commit for %s: %s", recipe.Name, err)
|
||||||
@ -118,6 +119,7 @@ var AppNewCommand = &cobra.Command{
|
|||||||
recipeVersion = formatter.SmallSHA(head.String())
|
recipeVersion = formatter.SmallSHA(head.String())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if err := ensureServerFlag(); err != nil {
|
if err := ensureServerFlag(); err != nil {
|
||||||
log.Fatal(err)
|
log.Fatal(err)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user