From 7350683cab9e9398ac179fcca97a83bce14f4c8f Mon Sep 17 00:00:00 2001 From: Markus Staab Date: Fri, 10 Jan 2025 16:06:25 +0100 Subject: [PATCH] Report missing repository config in update-code task --- recipe/deploy/update_code.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/recipe/deploy/update_code.php b/recipe/deploy/update_code.php index 22b5250db..13956780a 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}}';