Skip to content

Commit

Permalink
lets add automatic delete of the branch when the remote flag is set u…
Browse files Browse the repository at this point in the history
…nder the release
  • Loading branch information
Felipe Talavera authored and nvie committed Oct 1, 2010
1 parent df706ac commit 4c90d92
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions git-flow-release
Expand Up @@ -264,6 +264,8 @@ cmd_finish() {
die "Could not push to $MASTER_BRANCH from $ORIGIN."
git push --tags "$ORIGIN" || \
die "Could not push tags to $ORIGIN."
git push "$ORIGIN" :"$BRANCH" || \
die "Could not delete the remote $BRANCH in $ORIGIN."
fi

echo
Expand All @@ -275,6 +277,7 @@ cmd_finish() {
echo "- Release branch '$BRANCH' has been deleted"
if flag push; then
echo "- '$DEVELOP_BRANCH', '$MASTER_BRANCH' and tags have been pushed to '$ORIGIN'"
echo "- Release branch '$BRANCH' in '$ORIGIN' has been deleted."
fi
echo
}
Expand Down

0 comments on commit 4c90d92

Please sign in to comment.