mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
scripts/release: shallow clone repository
Signed-off-by: Ivan Valdes <ivan@vald.es>
This commit is contained in:
parent
f903a9bd0e
commit
4881e53677
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user