Merge pull request #1149 from mlebkowski/feature/receive-branch

pluginhook to receive branches different than master
This commit is contained in:
Jose Diaz-Gonzalez committed 2015-07-03 17:07:31 -04:00
commit 35ff3fa5ca
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
;; ;;