Skip to content

Commit

Permalink
Allow alias without root, closes drush-ops/drush#4059
Browse files Browse the repository at this point in the history
  • Loading branch information
Axel Rutz committed Oct 7, 2019
1 parent 1827707 commit a7c74ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SiteAliasTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public function hasRoot()
public function root()
{
if (!$this->hasRoot()) {
throw new \Exception('Site alias ' . $this->name . ' does not specify a root.');
return NULL;
}
$root = $this->get('root');
if ($this->isLocal()) {
Expand Down

0 comments on commit a7c74ea

Please sign in to comment.