From c2b81a2adf0c86c5f46ab960818f3606240f5532 Mon Sep 17 00:00:00 2001 From: Antoni Segura Puimedon Date: Thu, 8 Mar 2018 00:34:55 +0100 Subject: [PATCH] devstack-heat: Do not clone the entire kuryr-k8s If no github token is used, we resort to cloning. The more patches kuryr has, the longer it takes. That is, unless we limit the cloning depth, then it will only be the size of the latest snapshot. Change-Id: I765be71937f1bf20b99c503a4193ed3de4e71ef2 Signed-off-by: Antoni Segura Puimedon --- contrib/devstack-heat/lib/devstack-heat | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/devstack-heat/lib/devstack-heat b/contrib/devstack-heat/lib/devstack-heat index 6dcc2e09e..73985c7db 100644 --- a/contrib/devstack-heat/lib/devstack-heat +++ b/contrib/devstack-heat/lib/devstack-heat @@ -55,7 +55,7 @@ function _generate_deployment_name() { set -e (>&2 echo "Didn't find a Github token in ENV var DEVSTACK_HEAT_GH_TOKEN. Falling back to cloning repo...") tmpdir=$(mktemp -d) - git clone https://git.openstack.org/openstack/kuryr-kubernetes "${tmpdir}/kuryr-kubernetes" > /dev/null + git clone --depth 1 https://git.openstack.org/openstack/kuryr-kubernetes "${tmpdir}/kuryr-kubernetes" > /dev/null pushd "${tmpdir}/kuryr-kubernetes" > /dev/null latest_commit=$(git rev-parse HEAD) popd > /dev/null