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.
This commit is contained in:
2018-02-02 12:04:47 +01:00
parent bef402a6b0
commit 1617a119db

View File

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