diff --git a/Makefile b/Makefile index ae0e1cf4..e1ca9564 100644 --- a/Makefile +++ b/Makefile @@ -78,6 +78,7 @@ check-working-tree: .branch: @echo "[Release from branch]" @git branch | grep '^*' | awk '{ print $$2 }' > .branch + @[[ "`git branch | awk '{ print $$2 }'`" != "master" ]] && echo "Fail. Current branch is not master." && exit 1 @echo "Current branch: `cat .branch`" changelog: