From b5e2e582667032f0228c931cbb5393b4c93dd5dc Mon Sep 17 00:00:00 2001 From: Robbie Averill Date: Wed, 9 May 2018 10:41:33 +1200 Subject: [PATCH] FIX Use correct repository path for .cow.repository writing --- src/Steps/Release/CreateProject.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Steps/Release/CreateProject.php b/src/Steps/Release/CreateProject.php index 460e0f2..2c1e074 100644 --- a/src/Steps/Release/CreateProject.php +++ b/src/Steps/Release/CreateProject.php @@ -93,8 +93,8 @@ public function run(InputInterface $input, OutputInterface $output) } // If using custom repository, write `.cow.repository` file for later - if ($this->getRepository()) { - file_put_contents($path.'/.cow.repository', $this->getRepository()); + if ($repo) { + file_put_contents($repo->getPath() . '/.cow.repository', $this->getRepository()); } // Success