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/10/21 15:01:26 UTC
[32/44] isis git commit: ISIS-1465: interim-release.sh needs to push
the remote branch, so can be picked up by CI
ISIS-1465: interim-release.sh needs to push the remote branch, so can be picked up by CI
Project: http://git-wip-us.apache.org/repos/asf/isis/repo
Commit: http://git-wip-us.apache.org/repos/asf/isis/commit/242e76bc
Tree: http://git-wip-us.apache.org/repos/asf/isis/tree/242e76bc
Diff: http://git-wip-us.apache.org/repos/asf/isis/diff/242e76bc
Branch: refs/heads/master
Commit: 242e76bc5ed79f99e2bbff68deab83bb1cf6ec4a
Parents: d647bdf
Author: Dan Haywood <da...@haywood-associates.co.uk>
Authored: Thu Sep 29 22:47:17 2016 +0100
Committer: Dan Haywood <da...@haywood-associates.co.uk>
Committed: Thu Sep 29 22:47:17 2016 +0100
----------------------------------------------------------------------
interim-release.sh | 10 ++++++++++
1 file changed, 10 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/isis/blob/242e76bc/interim-release.sh
----------------------------------------------------------------------
diff --git a/interim-release.sh b/interim-release.sh
index 097b8bd..fd9afc2 100644
--- a/interim-release.sh
+++ b/interim-release.sh
@@ -36,6 +36,16 @@ git tag $TAG
echo "pushing tag"
git push $REMOTE $TAG
+echo "removing any earlier remote branches"
+for a in `git ls-remote --heads $REMOTE | sed 's?.*refs/heads/??' | grep interim`
+do
+ git push $REMOTE --delete $a
+done
+
+# need to push branch, so will be picked up for building by CI
+echo "pushing branch"
+git push $REMOTE $BRANCH
+
echo "switching back to original branch"
git checkout $CURR_BRANCH