Permalink
Browse files

Checkout out a branch after release is finished by default

  • Loading branch information...
1 parent 1d7aea3 commit b617558cf4e1fa1749bad0f0f15cbd4648d8556b @johncongdon committed Jul 27, 2012
Showing with 7 additions and 0 deletions.
  1. +6 −0 git-flow-release
  2. +1 −0 gitflow-common
View
@@ -317,6 +317,12 @@ cmd_finish() {
echo "- '$DEVELOP_BRANCH', '$MASTER_BRANCH' and tags have been pushed to '$ORIGIN'"
echo "- Release branch '$BRANCH' in '$ORIGIN' has been deleted."
fi
+
+ if [ "$BRANCH_AFTER_RELEASE" != "" ]; then
+ git checkout "$BRANCH_AFTER_RELEASE"
+ echo "- Checked out '$BRANCH_AFTER_RELEASE'."
+ fi
+
echo
}
View
@@ -189,6 +189,7 @@ gitflow_load_settings() {
export MASTER_BRANCH=$(git config --get gitflow.branch.master)
export DEVELOP_BRANCH=$(git config --get gitflow.branch.develop)
export ORIGIN=$(git config --get gitflow.origin || echo origin)
+ export BRANCH_AFTER_RELEASE=$(git config --get gitflow.branch.afterrelease)
}
#

0 comments on commit b617558

Please sign in to comment.