Skip to content

Commit

Permalink
chore: Fix current branch check
Browse files Browse the repository at this point in the history
  • Loading branch information
jzaefferer committed Jan 12, 2017
1 parent 521c202 commit e1c4c15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chore/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function assertions {
exit 1
fi

CURRENT_BRANCH=`git name-rev --name-only HEAD`
CURRENT_BRANCH=`git rev-parse --abbrev-ref HEAD`
if [ :$CURRENT_BRANCH != :master ]; then
echo 'Current branch `'$CURRENT_BRANCH'`' "isn't" '`master`.'
echo Quiting...
Expand Down

1 comment on commit e1c4c15

@rxaviers
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

Please sign in to comment.