From 1617a119db53f140b494b0afbc57f0f8d8499252 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Fri, 2 Feb 2018 12:04:47 +0100 Subject: [PATCH] No more branch check for subprojects We only need the locations of those subprojects to get their Git URL, and the state of the work directory doesn't matter. --- deploy/2docker.sh | 8 -------- 1 file changed, 8 deletions(-) diff --git a/deploy/2docker.sh b/deploy/2docker.sh index a43382e..2a6f2b1 100755 --- a/deploy/2docker.sh +++ b/deploy/2docker.sh @@ -57,14 +57,6 @@ except ImportError: print(os.path.dirname(os.path.dirname(${MODULE_NAME}.__file__))) EOT ) - - if [ -z "$SKIP_BRANCH_CHECK" ]; then - if [ $(git -C $MODULE_DIR rev-parse --abbrev-ref HEAD) != "$DEPLOY_BRANCH" ]; then - echo "${MODULE_NAME}: ($MODULE_DIR) NOT on the $DEPLOY_BRANCH branch, refusing to deploy." >&2 - exit 1 - fi - fi - echo $MODULE_DIR }