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