From aba91c88cba3538674d85378fcfe4105d5cc9694 Mon Sep 17 00:00:00 2001 From: Chris Koeritz Date: Sun, 12 Nov 2017 15:10:39 -0500 Subject: [PATCH] another try got some odd complaints from git last time. --- scripts/rev_control/version_control.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/rev_control/version_control.sh b/scripts/rev_control/version_control.sh index 491b77a9..1ae3494a 100644 --- a/scripts/rev_control/version_control.sh +++ b/scripts/rev_control/version_control.sh @@ -266,6 +266,11 @@ function check_branch_state() { local branch="$1"; shift + if [ -z "$branch" ]; then + echo "No branch was passed to check branch state." + return 1 + fi + local to_return=120 # unknown issue. local local_branch=$(git rev-parse @) -- 2.34.1