pluginhook to receive branches different than master

This commit is contained in:
Maciej Łebkowski committed 2015-06-25 18:00:11 +02:00
1 parent cc8b1fccc1
commit 259f8507ca
1 file changed
+4
+4
View File
@@ -38,10 +38,14 @@ case "$1" in
if [[ $refname = "refs/heads/master" ]] ; then if [[ $refname = "refs/heads/master" ]] ; then
# broken out into pluginhook so we might support other methods to receive an app # broken out into pluginhook so we might support other methods to receive an app
pluginhook receive-app $APP $newrev pluginhook receive-app $APP $newrev
else
if test -f "$PLUGIN_PATH"/enabled/*/receive-branch; then
pluginhook receive-branch $APP $newrev $refname
else else
echo $'\e[1G\e[K'"-----> WARNING: deploy did not complete, you must push to master." echo $'\e[1G\e[K'"-----> WARNING: deploy did not complete, you must push to master."
echo $'\e[1G\e[K'"-----> for example, try 'git push <dokku> ${refname/refs\/heads\/}:master'" echo $'\e[1G\e[K'"-----> for example, try 'git push <dokku> ${refname/refs\/heads\/}:master'"
fi fi
fi
done done
;; ;;