feat: warn and exit non-zero when attempting to rebuild from a non-existent branch

Closes #4898
This commit is contained in:
Jose Diaz-Gonzalez
2022-04-02 04:22:44 -04:00
parent 5fc738f001
commit 68c0d7e964
3 changed files with 42 additions and 9 deletions

View File

@@ -3,4 +3,12 @@ source "$PLUGIN_AVAILABLE_PATH/git/functions"
set -eo pipefail
[[ $DOKKU_TRACE ]] && set -x
git_receive_app "$@"
trigger-git-receive-app() {
declare desc="builds the app from the local git repository"
declare trigger="receive-app"
git_receive_app "$@"
return $?
}
trigger-git-receive-app "$@"