Skip to content

Commit 92cae36

Browse files
committed
[chore] don't allow publish if branch is not master.
1 parent d6931d1 commit 92cae36

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: Makefile

+1
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ check-working-tree:
7878
.branch:
7979
@echo "[Release from branch]"
8080
@git branch | grep '^*' | awk '{ print $$2 }' > .branch
81+
@[[ "`git branch | awk '{ print $$2 }'`" != "master" ]] && echo "Fail. Current branch is not master." && exit 1
8182
@echo "Current branch: `cat .branch`"
8283

8384
changelog:

0 commit comments

Comments
 (0)