1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2026-01-03 23:22:30 +03:00

Don't create release branch if we're already there

This commit is contained in:
Richard van der Hoff
2016-03-17 00:19:30 +00:00
parent e22efc9dd5
commit 2f93490054

View File

@@ -30,8 +30,11 @@ rel_branch="release-$tag"
cd `dirname $0`
echo "Creating release branch"
git checkout -b "$rel_branch"
# we might already be on the release branch, in which case, yay
if [ $(git symbolic-ref --short HEAD) != "$rel_branch" ]; then
echo "Creating release branch"
git checkout -b "$rel_branch"
fi
echo "Generating changelog"
update_changelog "$release"