Make dokku play nice when we have multiple receive-app hooks in various plugins.

This commit is contained in:
Rob Blanckaert
2015-08-20 17:24:50 -04:00
parent acd28f4647
commit 98990b6885
3 changed files with 8 additions and 3 deletions

View File

@@ -37,7 +37,7 @@ case "$1" in
# if block if you wish to run it for others as well.
if [[ $refname = "refs/heads/master" ]] ; then
# broken out into pluginhook so we might support other methods to receive an app
pluginhook receive-app $APP $newrev
pluginhook -p receive-app $APP $newrev
else
if test -f "$PLUGIN_PATH"/enabled/*/receive-branch; then
pluginhook receive-branch $APP $newrev $refname

View File

@@ -4,4 +4,9 @@ source "$(dirname $0)/../common/functions"
APP="$1"; REV="$2"
dokku git-build $APP $REV
# Don't trigger git build if there is no git repository.
if [ ! -d "$DOKKU_ROOT/$APP/refs" ]; then
cat
else
dokku git-build $APP $REV
fi

View File

@@ -49,7 +49,7 @@ case "$1" in
verify_app_name "$2"
APP="$2"
pluginhook receive-app $APP
pluginhook -p receive-app $APP
;;
ps:rebuildall)