This is an automated email from the ASF dual-hosted git repository. potiuk pushed a commit to branch v1-10-test in repository https://gitbox.apache.org/repos/asf/airflow.git
commit e5162b0f6686e571c520a3e7f73fef8208b3ecf3 Author: Jarek Potiuk <[email protected]> AuthorDate: Tue Jun 9 08:47:25 2020 +0200 Fixes failure of the build scripts when remote repo does not exist (#9188) (cherry picked from commit 337a2dc9bce689061c822f9b1ad172d4128de153) --- scripts/ci/libraries/_build_images.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/ci/libraries/_build_images.sh b/scripts/ci/libraries/_build_images.sh index 123665b..6561184 100644 --- a/scripts/ci/libraries/_build_images.sh +++ b/scripts/ci/libraries/_build_images.sh @@ -355,7 +355,7 @@ function get_ci_environment() { export CI_SOURCE_REPO="${GITHUB_ACTOR}/${SOURCE_AIRFLOW_REPO}" export CI_SOURCE_BRANCH="${GITHUB_HEAD_REF}" BRANCH_EXISTS=$(git ls-remote --heads \ - "https://github.com/${CI_SOURCE_REPO}.git" "${CI_SOURCE_BRANCH}") + "https://github.com/${CI_SOURCE_REPO}.git" "${CI_SOURCE_BRANCH}" || true) if [[ ${BRANCH_EXISTS} == "" ]]; then echo echo "https://github.com/${CI_SOURCE_REPO}.git Branch ${CI_SOURCE_BRANCH} does not exist"
