Skip to content

Commit 7eae3b0

Browse files
committed
notify user when pushing to non-master branch
1 parent 74dfb60 commit 7eae3b0

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎plugins/git/commands‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ case "$1" in
1111
# if block if you wish to run it for others as well.
1212
if [[ $refname = "refs/heads/master" ]] ; then
1313
git archive $newrev | dokku receive $APP | sed -u "s/^/"$'\e[1G'"/"
14+
else
15+
echo $'\e[1G\e[K'"-----> WARNING: deploy did not complete, you must push to master."
16+
echo $'\e[1G\e[K'"-----> for example, try 'git push <dokku> ${refname/refs\/heads\/}:master'"
1417
fi
1518

1619
done

0 commit comments

Comments
 (0)