fix: use correct env var for app name when setting initial DOKKU_DEPLOY_BRANCH propery

This commit is contained in:
Jose Diaz-Gonzalez
2022-04-03 13:11:52 -04:00
parent 7a72afe880
commit e197aa62d1

View File

@@ -101,7 +101,7 @@ cmd-git-hook() {
plugn trigger deploy-source-set "$APP" "git-push" "$newrev"
elif [[ -z "$(fn-git-deploy-branch "$APP" "")" ]]; then
echo $'\e[1G\e[K'"-----> Set ${refname/refs\/heads\//} to DOKKU_DEPLOY_BRANCH."
fn-plugin-property-write "git" "$app" "deploy-branch" "${refname/refs\/heads\//}"
fn-plugin-property-write "git" "$APP" "deploy-branch" "${refname/refs\/heads\//}"
git_receive_app "$APP" "$newrev"
plugn trigger deploy-source-set "$APP" "git-push" "$newrev"
else