Merge "Fix cloning requirements when GIT_DEPTH is set"

This commit is contained in:
Zuul 2022-01-11 18:51:34 +00:00 committed by Gerrit Code Review
commit df551da6f5

View File

@ -765,7 +765,9 @@ save_stackenv $LINENO
# Bring down global requirements before any use of pip_install. This is
# necessary to ensure that the constraints file is in place before we
# attempt to apply any constraints to pip installs.
git_clone $REQUIREMENTS_REPO $REQUIREMENTS_DIR $REQUIREMENTS_BRANCH
# We always need the master branch in addition to any stable branch, so
# override GIT_DEPTH here.
GIT_DEPTH=0 git_clone $REQUIREMENTS_REPO $REQUIREMENTS_DIR $REQUIREMENTS_BRANCH
# Install package requirements
# Source it so the entire environment is available