From: Sébastien Han Date: Mon, 28 Nov 2016 17:54:14 +0000 (+0100) Subject: contrib: use push force because of the CI X-Git-Tag: v2.1.0~42 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=eb222864525e298ecfa9ceeb315f6c3e512e4f1d;p=ceph-ansible.git contrib: use push force because of the CI If we don't force push we won't be able to push new content from jenkins. Signed-off-by: Sébastien Han --- diff --git a/contrib/push-roles-to-ansible-galaxy.sh b/contrib/push-roles-to-ansible-galaxy.sh index 2f0a8b927..9e04298a7 100755 --- a/contrib/push-roles-to-ansible-galaxy.sh +++ b/contrib/push-roles-to-ansible-galaxy.sh @@ -66,13 +66,13 @@ for ROLE in $ROLES; do for BRANCH in $BRANCHES; do git checkout -B $BRANCH origin/$BRANCH git filter-branch -f --prune-empty --subdirectory-filter roles/$ROLE - git push $REMOTE $BRANCH + git push -f $REMOTE $BRANCH done reset_hard_origin # then we filter tags starting from version 2.0 and push them for TAG in $(git tag | egrep '^v[2-9].[0-9]*.[0-9]*$'); do git filter-branch -f --prune-empty --subdirectory-filter roles/$ROLE $TAG - git push $REMOTE $TAG + git push -f $REMOTE $TAG reset_hard_origin done done