From c39b339e71e62446b6cf61feaf3c0a5c82daf4bb Mon Sep 17 00:00:00 2001 From: Luigi Pinca Date: Thu, 29 Apr 2021 08:51:25 +0200 Subject: [PATCH] tools: use a shallow clone of the npm/cli repository Use a shallow clone instead of cloning the whole repository. --- tools/update-npm.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tools/update-npm.sh b/tools/update-npm.sh index c106570d0b33dd..a203bba3623f7e 100755 --- a/tools/update-npm.sh +++ b/tools/update-npm.sh @@ -24,12 +24,11 @@ mkdir -p "$WORKSPACE" cd "$WORKSPACE" -git clone git@github.com:npm/cli.git +git clone --depth=1 --branch="v$NPM_VERSION" git@github.com:npm/cli.git cd cli echo "Preparing npm release" -git checkout v"$NPM_VERSION" make make release