Skip to content

Commit

Permalink
Merge pull request etcd-io#18106 from ivanvc/release-3.4-scripts-rele…
Browse files Browse the repository at this point in the history
…ase-shallow-git-clone

[3.4] scripts/release: shallow clone repository
  • Loading branch information
serathius authored Jun 1, 2024
2 parents d37a470 + 0e17a33 commit 88c2295
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 @@ -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
Expand Down

0 comments on commit 88c2295

Please sign in to comment.