From 93157773b5a56d307d1e8e318839649cc1ffe8b3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?S=C3=A9bastien=20Han?= Date: Fri, 16 Dec 2016 23:27:33 +0100 Subject: [PATCH] contrib: push all new stable branches to the galaxy MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Prior to this patch we were only pushing 'master' and 'ansible-1.9' branches. Each new release also introduces a new branch so we want to push it as well. Yes the 'grep' is a bit ugly, feel free to come up with something nicer :) Signed-off-by: Sébastien Han --- contrib/push-roles-to-ansible-galaxy.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/push-roles-to-ansible-galaxy.sh b/contrib/push-roles-to-ansible-galaxy.sh index 700e9eaaf..8c4d6dcfd 100755 --- a/contrib/push-roles-to-ansible-galaxy.sh +++ b/contrib/push-roles-to-ansible-galaxy.sh @@ -63,7 +63,7 @@ for ROLE in $ROLES; do reset_hard_origin # First we filter branches by rewriting master with the content of roles/$ROLE # this gives us a new commit history - for BRANCH in $BRANCHES; do + for BRANCH in $(git branch -r | egrep 'origin/master|origin/ansible-1.9|origin/stable-' | grep -v origin/HEAD | cut -d '/' -f2); do git checkout -B $BRANCH origin/$BRANCH git filter-branch -f --prune-empty --subdirectory-filter roles/$ROLE git push -f $REMOTE $BRANCH -- 2.39.5