From 28c409509cf01d1b3e67c26b233b22b6c5845c8a Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Fri, 12 Jan 2018 13:42:10 -0500 Subject: [PATCH] fix: declare DOKKU_DEPLOY_BRANCH --- plugins/git/functions | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/git/functions b/plugins/git/functions index b229530a1..6ca0ccb0f 100755 --- a/plugins/git/functions +++ b/plugins/git/functions @@ -142,11 +142,12 @@ git_hook_cmd() { git_build() { declare desc="setup and call git_build_app_repo" local APP="$1" + local DOKKU_DEPLOY_BRANCH REF if [[ $# -ge 2 ]]; then local REF="$2" else DOKKU_DEPLOY_BRANCH="$(git_deploy_branch "$APP")" - local REF=$(< "$DOKKU_ROOT/$APP/refs/heads/$DOKKU_DEPLOY_BRANCH") + REF=$(< "$DOKKU_ROOT/$APP/refs/heads/$DOKKU_DEPLOY_BRANCH") fi # shellcheck disable=SC2086