Commit b9765da7 authored by Vincent Driessen's avatar Vincent Driessen

No need to reimplement the git_current_branch function.

parent 92c16a9e
......@@ -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
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment