Skip to content

Commit

Permalink
No need to reimplement the git_current_branch function.
Browse files Browse the repository at this point in the history
  • Loading branch information
nvie committed Oct 5, 2010
1 parent 92c16a9 commit b9765da
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions git-flow-release
Expand Up @@ -149,11 +149,8 @@ require_no_existing_release_branches() {
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
}
Expand Down

0 comments on commit b9765da

Please sign in to comment.