Skip to content

Commit

Permalink
Does not ask after GIT url when linking to existing site
Browse files Browse the repository at this point in the history
  • Loading branch information
schmidfelix committed Dec 1, 2020
1 parent e20138a commit 45b07d0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/Commands/InitCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,11 @@ public function handle(Ploi $ploi, Configuration $configuration)

$configuration->initialize($serverId, $siteId, getcwd(), $domain);

if(isset($selectedDomain)) {
$this->info("Your project got linked to {$domain}!");
exit(0);
}

$gitRepo = $this->getGitRepositoryUrl();
if (Str::startsWith($gitRepo, 'fatal')) {
$this->error('This site is no git repository!');
Expand Down

0 comments on commit 45b07d0

Please sign in to comment.