Skip to content

Commit

Permalink
scripts/release: shallow clone repository
Browse files Browse the repository at this point in the history
Backport of commit 4881e53 / pull
request etcd-io#18095.

Signed-off-by: Ivan Valdes <ivan@vald.es>
  • Loading branch information
ivanvc authored and aneesh1 committed Sep 24, 2024
1 parent 2713c03 commit 8443225
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ main() {
if [ ! -d "${reldir}/etcd" ] && [ "${IN_PLACE}" == 0 ]; then
mkdir -p "${reldir}"
cd "${reldir}"
run git clone "${REPOSITORY}" --branch "${BRANCH}"
run git clone "${REPOSITORY}" --branch "${BRANCH}" --depth 1
run cd "${reldir}/etcd" || exit 2
run git checkout "${BRANCH}" || exit 2
run git pull origin
Expand Down

0 comments on commit 8443225

Please sign in to comment.