diff --git a/recipe/deploy/update_code.php b/recipe/deploy/update_code.php index f22f724bb..f539d29a5 100644 --- a/recipe/deploy/update_code.php +++ b/recipe/deploy/update_code.php @@ -74,6 +74,10 @@ $repository = get('repository'); $target = get('target'); + if (empty($repository)) { + throw new ConfigurationException("Missing 'repository' configuration."); + } + $targetWithDir = $target; if (!empty(get('sub_directory'))) { $targetWithDir .= ':{{sub_directory}}';