From 2c86e2cae195eba5c3ba769cd4ea214700e69d5b Mon Sep 17 00:00:00 2001 From: Thorsten Eckel Date: Thu, 23 Aug 2018 15:43:09 +0200 Subject: [PATCH] Don't sync cherry-pick branches over to Github. --- script/build/sync_repo.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/script/build/sync_repo.sh b/script/build/sync_repo.sh index 1a6ea4ed6..698c78f68 100755 --- a/script/build/sync_repo.sh +++ b/script/build/sync_repo.sh @@ -9,6 +9,11 @@ if echo $CI_BUILD_REF_NAME | grep private; then exit 0 fi +if echo $CI_BUILD_REF_NAME | grep cherry-pick-; then + echo 'sync no cherry-pick branches' + exit 0 +fi + git checkout $CI_BUILD_REF_NAME if [ "$CI_BUILD_REF_NAME" != "$CI_BUILD_TAG" ]; then git pull --rebase origin $CI_BUILD_REF_NAME