Commit 4c90d928 authored by Felipe Talavera's avatar Felipe Talavera Committed by Vincent Driessen

lets add automatic delete of the branch when the remote flag is set under the release

parent df706ace
...@@ -264,6 +264,8 @@ cmd_finish() { ...@@ -264,6 +264,8 @@ cmd_finish() {
die "Could not push to $MASTER_BRANCH from $ORIGIN." die "Could not push to $MASTER_BRANCH from $ORIGIN."
git push --tags "$ORIGIN" || \ git push --tags "$ORIGIN" || \
die "Could not push tags to $ORIGIN." die "Could not push tags to $ORIGIN."
git push "$ORIGIN" :"$BRANCH" || \
die "Could not delete the remote $BRANCH in $ORIGIN."
fi fi
echo echo
...@@ -275,6 +277,7 @@ cmd_finish() { ...@@ -275,6 +277,7 @@ cmd_finish() {
echo "- Release branch '$BRANCH' has been deleted" echo "- Release branch '$BRANCH' has been deleted"
if flag push; then if flag push; then
echo "- '$DEVELOP_BRANCH', '$MASTER_BRANCH' and tags have been pushed to '$ORIGIN'" echo "- '$DEVELOP_BRANCH', '$MASTER_BRANCH' and tags have been pushed to '$ORIGIN'"
echo "- Release branch '$BRANCH' in '$ORIGIN' has been deleted."
fi fi
echo echo
} }
......
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