diff --git a/devenv/docker/blocks/graphite1/conf/etc/my_init.d/01_conf_init.sh b/devenv/docker/blocks/graphite1/conf/etc/my_init.d/01_conf_init.sh index 0937f78cd6a..4c266237618 100755 --- a/devenv/docker/blocks/graphite1/conf/etc/my_init.d/01_conf_init.sh +++ b/devenv/docker/blocks/graphite1/conf/etc/my_init.d/01_conf_init.sh @@ -30,7 +30,7 @@ fi # - /opt/statsd statsd_dir_contents=$(find /opt/statsd -mindepth 1 -print -quit) if [[ -z $statsd_dir_contents ]]; then - git clone -b v0.7.2 https://github.com/etsy/statsd.git /opt/statsd + git clone --depth 1 -b v0.7.2 https://github.com/etsy/statsd.git /opt/statsd cp $conf_dir/opt/statsd/config.js /opt/statsd/config.js fi diff --git a/docs/sources/tutorials/stack_guide_graphite.md b/docs/sources/tutorials/stack_guide_graphite.md index 351ad8ed73b..7057b5655be 100644 --- a/docs/sources/tutorials/stack_guide_graphite.md +++ b/docs/sources/tutorials/stack_guide_graphite.md @@ -60,8 +60,8 @@ Next we will clone carbon and whisper and install these components. Whisper is j by carbon to write metrics to disk. cd /usr/local/src - git clone https://github.com/graphite-project/carbon.git - git clone https://github.com/graphite-project/whisper.git + git clone --depth 1 https://github.com/graphite-project/carbon.git + git clone --depth 1 https://github.com/graphite-project/whisper.git cd whisper && python setup.py install && cd .. cd carbon && python setup.py install && cd .. diff --git a/packages/grafana-toolkit/config/circleci/config.yml b/packages/grafana-toolkit/config/circleci/config.yml index 4b141d2f3fe..09c1f3a0670 100644 --- a/packages/grafana-toolkit/config/circleci/config.yml +++ b/packages/grafana-toolkit/config/circleci/config.yml @@ -187,7 +187,7 @@ jobs: - << pipeline.parameters.ssh-fingerprint >> - run: name: Checkout provisioning files - command: git clone git@github.com:grafana/plugin-provisioning.git + command: git clone --depth 1 git@github.com:grafana/plugin-provisioning.git - run: name: Prepare task output dir command: | diff --git a/packages/grafana-toolkit/docker/grafana-plugin-ci-alpine/scripts/deploy.sh b/packages/grafana-toolkit/docker/grafana-plugin-ci-alpine/scripts/deploy.sh index 597f2922649..8401047f43c 100755 --- a/packages/grafana-toolkit/docker/grafana-plugin-ci-alpine/scripts/deploy.sh +++ b/packages/grafana-toolkit/docker/grafana-plugin-ci-alpine/scripts/deploy.sh @@ -49,7 +49,7 @@ chmod +x /usr/local/bin/grabpl apk add --no-cache git # Install Mage mkdir -pv /tmp/mage $HOME/go/bin -git clone https://github.com/magefile/mage.git /tmp/mage +git clone --depth 1 https://github.com/magefile/mage.git /tmp/mage cd /tmp/mage && go run bootstrap.go mv $HOME/go/bin/mage /usr/local/bin diff --git a/packages/grafana-toolkit/docker/grafana-plugin-ci-e2e/scripts/deploy.sh b/packages/grafana-toolkit/docker/grafana-plugin-ci-e2e/scripts/deploy.sh index 9351b7fc041..a95d73f5832 100755 --- a/packages/grafana-toolkit/docker/grafana-plugin-ci-e2e/scripts/deploy.sh +++ b/packages/grafana-toolkit/docker/grafana-plugin-ci-e2e/scripts/deploy.sh @@ -48,7 +48,7 @@ chmod +x /usr/local/bin/grabpl # Install Mage mkdir -pv /tmp/mage $HOME/go/bin -git clone https://github.com/magefile/mage.git /tmp/mage +git clone --depth 1 https://github.com/magefile/mage.git /tmp/mage pushd /tmp/mage && go run bootstrap.go && popd mv $HOME/go/bin/mage /usr/local/bin # Cleanup after yourself diff --git a/packages/grafana-toolkit/docker/grafana-plugin-ci/scripts/deploy.sh b/packages/grafana-toolkit/docker/grafana-plugin-ci/scripts/deploy.sh index a9a01b2a012..787c6e5e9ef 100755 --- a/packages/grafana-toolkit/docker/grafana-plugin-ci/scripts/deploy.sh +++ b/packages/grafana-toolkit/docker/grafana-plugin-ci/scripts/deploy.sh @@ -32,7 +32,7 @@ chmod +x /usr/local/bin/grabpl # Install Mage mkdir -pv /tmp/mage $HOME/go/bin -git clone https://github.com/magefile/mage.git /tmp/mage +git clone --depth 1 https://github.com/magefile/mage.git /tmp/mage pushd /tmp/mage && go run bootstrap.go && popd mv $HOME/go/bin/mage /usr/local/bin # Cleanup after yourself diff --git a/scripts/build/prepare_signing_key.sh b/scripts/build/prepare_signing_key.sh index a98cc7f1d33..133111a4c40 100755 --- a/scripts/build/prepare_signing_key.sh +++ b/scripts/build/prepare_signing_key.sh @@ -2,4 +2,4 @@ set -e -git clone git@github.com:torkelo/private.git ~/private-repo +git clone --depth 1 git@github.com:torkelo/private.git ~/private-repo