From 807330ac370e8d0130cea2a99363cd3299422837 Mon Sep 17 00:00:00 2001 From: "Dr. Jens Harbott" Date: Fri, 7 Jan 2022 11:40:54 +0100 Subject: [PATCH] Fix cloning requirements when GIT_DEPTH is set We always need the master branch of requirements in order to be able to install tempest with it, so override GIT_DEPTH when cloning that repo. Closes-Bug: 1956616 Change-Id: Id0b409bfadd73f2c30314724178d6e199121050b Signed-off-by: Dr. Jens Harbott --- stack.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/stack.sh b/stack.sh index 0659212ab3..c92cc79b40 100755 --- a/stack.sh +++ b/stack.sh @@ -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