From f52dd2785bef54b253be5308f8c2eb81f47969c8 Mon Sep 17 00:00:00 2001 From: Dane Powell Date: Fri, 5 Mar 2021 09:46:31 -0800 Subject: [PATCH] DX-3486: Project creation fails if Git config not set (#4357) --- src/Robo/Commands/Blt/UpdateCommand.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Robo/Commands/Blt/UpdateCommand.php b/src/Robo/Commands/Blt/UpdateCommand.php index 911cf8374..20e28ef18 100644 --- a/src/Robo/Commands/Blt/UpdateCommand.php +++ b/src/Robo/Commands/Blt/UpdateCommand.php @@ -54,7 +54,8 @@ public function addToProject() { $this->initializeBlt(); $this->setProjectName(); $this->initGitignore(); - $this->initAndCommitRepo(); + // Invoke command instead of calling method to ensure hooks run. + $this->invokeCommand('internal:create-project:init-repo'); $this->displayArt(); $this->yell("BLT has been added to your project."); $this->say("Please continue by following the \"Adding BLT to an existing project\" instructions:");