From f96d071222e6cd3c3149707a4d834535c8dd9b30 Mon Sep 17 00:00:00 2001 From: Richard Macklin <1863540+rmacklin@users.noreply.github.com> Date: Sun, 8 Oct 2023 15:14:40 -0700 Subject: [PATCH] Fix copy-pasted error message in pre-build.sample The "No git remote set" error message was appropriate for the previous block (where it was presumably copy-pasted from), but in this line we have failed the check that determines if we have a git branch checked out, so we should output a corresponding error. --- lib/kamal/cli/templates/sample_hooks/pre-build.sample | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/kamal/cli/templates/sample_hooks/pre-build.sample b/lib/kamal/cli/templates/sample_hooks/pre-build.sample index 218e29631..f87d81130 100755 --- a/lib/kamal/cli/templates/sample_hooks/pre-build.sample +++ b/lib/kamal/cli/templates/sample_hooks/pre-build.sample @@ -32,7 +32,7 @@ fi current_branch=$(git branch --show-current) if [ -z "$current_branch" ]; then - echo "No git remote set, aborting..." >&2 + echo "Not on a git branch, aborting..." >&2 exit 1 fi