No need to reimplement the git_current_branch function.
diff --git a/git-flow-release b/git-flow-release
index d573da1..bc7795c 100644
--- a/git-flow-release
+++ b/git-flow-release
@@ -149,11 +149,8 @@
die "There is an existing release branch ($first_branch). Finish that one first."
}
-git_actual_branch(){
- git branch --no-color | grep '^*' | sed 's/^[* ] //'
-}
require_not_being_in_release_branch() {
- if has $BRANCH $(git_actual_branch); then
+ if [ "$BRANCH" = "$(git_current_branch)"]; then
die "You cannot be in the '$BRANCH' branch when you finnish it."
fi
}