Merge pull request #1149 from mlebkowski/feature/receive-branch
pluginhook to receive branches different than master
This commit is contained in:
@@ -39,8 +39,12 @@ case "$1" in
|
|||||||
# 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
|
else
|
||||||
echo $'\e[1G\e[K'"-----> WARNING: deploy did not complete, you must push to master."
|
if test -f "$PLUGIN_PATH"/enabled/*/receive-branch; then
|
||||||
echo $'\e[1G\e[K'"-----> for example, try 'git push <dokku> ${refname/refs\/heads\/}:master'"
|
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
|
fi
|
||||||
done
|
done
|
||||||
;;
|
;;
|
||||||
|
|||||||
Reference in New Issue
Block a user