mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
scripts/release: shallow clone repository
Backport of commit 4881e53677f6cb592aa1cf7ee15bfd51e6cf1ff9 / pull request #18095. Signed-off-by: Ivan Valdes <ivan@vald.es>
This commit is contained in:
parent
d37a470645
commit
0e17a3310e
@ -65,7 +65,7 @@ main() {
|
|||||||
if [ ! -d "${reldir}/etcd" ] && [ "${IN_PLACE}" == 0 ]; then
|
if [ ! -d "${reldir}/etcd" ] && [ "${IN_PLACE}" == 0 ]; then
|
||||||
mkdir -p "${reldir}"
|
mkdir -p "${reldir}"
|
||||||
cd "${reldir}"
|
cd "${reldir}"
|
||||||
git clone "${REPOSITORY}" --branch "${BRANCH}"
|
git clone "${REPOSITORY}" --branch "${BRANCH}" --depth 1
|
||||||
cd "${reldir}/etcd" || exit 2
|
cd "${reldir}/etcd" || exit 2
|
||||||
git checkout "${BRANCH}" || exit 2
|
git checkout "${BRANCH}" || exit 2
|
||||||
git pull origin
|
git pull origin
|
||||||
|
Loading…
x
Reference in New Issue
Block a user