Created
November 4, 2014 17:17
-
-
Save mbenford/43c8ac27895823bbc2ec to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
release_branch=$(git-get-release-branch.sh $1) | |
local_branch=$(git rev-parse --symbolic-full-name --abbrev-ref HEAD) | |
if [ "$local_branch" != "master" ]; then | |
echo "The current branch is not master. Aborting." | |
exit 1 | |
fi | |
echo "Merging $release_branch into master..." | |
git merge --no-ff $release_branch |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment