From 0e17a3310e94cd66c01665bf23d052191cc07e08 Mon Sep 17 00:00:00 2001 From: Ivan Valdes Date: Fri, 31 May 2024 15:39:49 -0700 Subject: [PATCH] scripts/release: shallow clone repository Backport of commit 4881e53677f6cb592aa1cf7ee15bfd51e6cf1ff9 / pull request #18095. Signed-off-by: Ivan Valdes --- scripts/release.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/release.sh b/scripts/release.sh index d57ff49ef85..593b371d36d 100755 --- a/scripts/release.sh +++ b/scripts/release.sh @@ -65,7 +65,7 @@ main() { if [ ! -d "${reldir}/etcd" ] && [ "${IN_PLACE}" == 0 ]; then mkdir -p "${reldir}" cd "${reldir}" - git clone "${REPOSITORY}" --branch "${BRANCH}" + git clone "${REPOSITORY}" --branch "${BRANCH}" --depth 1 cd "${reldir}/etcd" || exit 2 git checkout "${BRANCH}" || exit 2 git pull origin