From 7eae3b063ca03f37ec59420ed6933b83e507dc82 Mon Sep 17 00:00:00 2001 From: jay becker Date: Sun, 15 Dec 2013 17:11:08 -0600 Subject: [PATCH] notify user when pushing to non-master branch --- plugins/git/commands | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/git/commands b/plugins/git/commands index af6c8ff31..84c3a7289 100755 --- a/plugins/git/commands +++ b/plugins/git/commands @@ -11,6 +11,9 @@ case "$1" in # if block if you wish to run it for others as well. if [[ $refname = "refs/heads/master" ]] ; then git archive $newrev | dokku receive $APP | sed -u "s/^/"$'\e[1G'"/" + 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 done