Delete more than one tag.
Project: http://git-wip-us.apache.org/repos/asf/logging-log4cxx/repo Commit: http://git-wip-us.apache.org/repos/asf/logging-log4cxx/commit/e0c14b79 Tree: http://git-wip-us.apache.org/repos/asf/logging-log4cxx/tree/e0c14b79 Diff: http://git-wip-us.apache.org/repos/asf/logging-log4cxx/diff/e0c14b79 Branch: refs/heads/release_scripts Commit: e0c14b79194ada3a5210d17f14069d4056e65968 Parents: ab94e41 Author: Thorsten Schöning <[email protected]> Authored: Thu Aug 17 16:11:17 2017 +0200 Committer: Thorsten Schöning <[email protected]> Committed: Thu Aug 17 16:11:17 2017 +0200 ---------------------------------------------------------------------- releasePurge.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/logging-log4cxx/blob/e0c14b79/releasePurge.sh ---------------------------------------------------------------------- diff --git a/releasePurge.sh b/releasePurge.sh index 70e149d..9bea16a 100755 --- a/releasePurge.sh +++ b/releasePurge.sh @@ -31,10 +31,15 @@ function main() function purge_branch_and_tag() { git checkout "release_scripts" + git branch -D "next_stable" - git tag --delete "v0.11.0-RC1" git push --delete "origin" "next_stable" - git push --delete "origin" "v0.11.0-RC1" + + for tag in $(git tag -l | grep "v0.11.0-RC") + do + git tag --delete "${tag}" + git push --delete "origin" "${tag}" + done } function revert_pom_and_changes()
