another try
authorChris Koeritz <fred@gruntose.com>
Sun, 12 Nov 2017 20:10:39 +0000 (15:10 -0500)
committerChris Koeritz <fred@gruntose.com>
Sun, 12 Nov 2017 20:10:39 +0000 (15:10 -0500)
got some odd complaints from git last time.

scripts/rev_control/version_control.sh

index 491b77a9234ae2722944a51defe9bfa87964a89e..1ae3494a11ab19e1312152f38ab885c7a3e3a4af 100644 (file)
@@ -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 @)