contrib: push all new stable branches to the galaxy

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 <seb@redhat.com>
pull/1200/head
Sébastien Han 2016-12-16 23:27:33 +01:00
parent 396cefbb75
commit 93157773b5
1 changed files with 1 additions and 1 deletions

View File

@ -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