From 259f8507ca13348bca46c16eeb7e08a96666518e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20=C5=81ebkowski?= Date: Tue, 28 Apr 2015 12:53:57 +0200 Subject: [PATCH] pluginhook to receive branches different than master --- plugins/git/commands | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/plugins/git/commands b/plugins/git/commands index 993ab6e16..174ba12ab 100755 --- a/plugins/git/commands +++ b/plugins/git/commands @@ -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 ${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 ${refname/refs\/heads\/}:master'" + fi fi done ;;