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:
@@ -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
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user