We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 30ee31d commit 92229a1Copy full SHA for 92229a1
cluster-autoscaler/hack/update-vendor.sh
@@ -80,12 +80,13 @@ set +o errexit
80
81
if [ ! -d ${K8S_REPO} ]; then
82
echo "Cloning ${K8S_FORK} into ${K8S_REPO}"
83
- git clone ${K8S_FORK} ${K8S_REPO} >&${BASH_XTRACEFD} 2>&1
+ git clone --depth 1 ${K8S_FORK} ${K8S_REPO} >&${BASH_XTRACEFD} 2>&1
84
fi
85
86
pushd ${K8S_REPO} >/dev/null
87
- git checkout ${K8S_REV} >&${BASH_XTRACEFD} 2>&1
88
- K8S_REV_PARSED=$(git rev-parse ${K8S_REV})
+ git fetch --depth 1 origin ${K8S_REV} >&${BASH_XTRACEFD} 2>&1
+ git checkout FETCH_HEAD >&${BASH_XTRACEFD} 2>&1
89
+ K8S_REV_PARSED=$(git rev-parse FETCH_HEAD)
90
popd >/dev/null
91
92
0 commit comments