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
+6 -2
+6 -2
View File
@@ -39,8 +39,12 @@ case "$1" in
# broken out into pluginhook so we might support other methods to receive an app
pluginhook receive-app $APP $newrev
else
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'"
if test -f "$PLUGIN_PATH"/enabled/*/receive-branch; then
pluginhook receive-branch $APP $newrev $refname
else
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'"
fi
fi
done
;;