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