You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@isis.apache.org by da...@apache.org on 2016/12/10 14:21:55 UTC

isis git commit: ISIS-1540: adds scripts to clean up tags locally and on remotes

Repository: isis
Updated Branches:
  refs/heads/maint-1.13.2 acb5c8b2d -> e8d2662d6


ISIS-1540: adds scripts to clean up tags locally and on remotes


Project: http://git-wip-us.apache.org/repos/asf/isis/repo
Commit: http://git-wip-us.apache.org/repos/asf/isis/commit/e8d2662d
Tree: http://git-wip-us.apache.org/repos/asf/isis/tree/e8d2662d
Diff: http://git-wip-us.apache.org/repos/asf/isis/diff/e8d2662d

Branch: refs/heads/maint-1.13.2
Commit: e8d2662d61541e30b96ae0ffcea3a0e790c04c4b
Parents: acb5c8b
Author: Dan Haywood <da...@haywood-associates.co.uk>
Authored: Sat Dec 10 14:17:47 2016 +0000
Committer: Dan Haywood <da...@haywood-associates.co.uk>
Committed: Sat Dec 10 14:20:37 2016 +0000

----------------------------------------------------------------------
 scripts/clean-up-tags-local.sh  | 19 +++++++++++++++++++
 scripts/clean-up-tags-remote.sh | 14 ++++++++++++++
 2 files changed, 33 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/isis/blob/e8d2662d/scripts/clean-up-tags-local.sh
----------------------------------------------------------------------
diff --git a/scripts/clean-up-tags-local.sh b/scripts/clean-up-tags-local.sh
new file mode 100644
index 0000000..bf2b504
--- /dev/null
+++ b/scripts/clean-up-tags-local.sh
@@ -0,0 +1,19 @@
+for a in `git tag --list | grep upstream`
+do
+    git tag -d $a
+done
+
+for a in `git tag --list | grep ^isis-`
+do
+    git tag -d $a
+done
+
+for a in `git tag --list | grep ^quickstart`
+do
+    git tag -d $a
+done
+
+for a in `git tag --list | grep ^simple`
+do
+    git tag -d $a
+done

http://git-wip-us.apache.org/repos/asf/isis/blob/e8d2662d/scripts/clean-up-tags-remote.sh
----------------------------------------------------------------------
diff --git a/scripts/clean-up-tags-remote.sh b/scripts/clean-up-tags-remote.sh
new file mode 100644
index 0000000..477bb8c
--- /dev/null
+++ b/scripts/clean-up-tags-remote.sh
@@ -0,0 +1,14 @@
+REMOTE=$1
+
+if [ "$REMOTE" == "" ]
+then
+    echo "usage: `basename $0` [remote]" >&2
+    exit 1
+fi
+
+for a in `git ls-remote --tags $REMOTE | awk '{print $2}' | cut -c11- | grep -v "\^{}$" | grep -v ^rel | grep -v interim`
+do
+    echo git push $REMOTE :refs/tags/$a
+    git push $REMOTE :refs/tags/$a
+done
+