fix: ensure we respect DOKKU_DEPLOY_BRANCH when rebuilding applications
Closes #3021
This commit is contained in:
@@ -145,7 +145,8 @@ git_build() {
|
||||
if [[ $# -ge 2 ]]; then
|
||||
local REF="$2"
|
||||
else
|
||||
local REF=$(< "$DOKKU_ROOT/$APP/refs/heads/master")
|
||||
DOKKU_DEPLOY_BRANCH="$(git_deploy_branch "$APP")"
|
||||
local REF=$(< "$DOKKU_ROOT/$APP/refs/heads/$DOKKU_DEPLOY_BRANCH")
|
||||
fi
|
||||
|
||||
# shellcheck disable=SC2086
|
||||
|
||||
Reference in New Issue
Block a user