fix: ensure to init/commit the new recipe repo

Part of coop-cloud/organising#247.
This commit is contained in:
2021-11-15 18:54:44 +01:00
parent 4a245c3e02
commit 1f6e4fa4a3
2 changed files with 43 additions and 0 deletions

View File

@ -82,6 +82,11 @@ The new example repository is cloned to ~/.abra/apps/<recipe>.
}
}
newGitRepo := path.Join(config.APPS_DIR, recipeName)
if err := git.Init(newGitRepo, true); err != nil {
logrus.Fatal(err)
}
logrus.Infof(
"new recipe '%s' created in %s, happy hacking!\n",
recipeName, path.Join(config.APPS_DIR, recipeName),