Skip to content

Commit 8a83bfd

Browse files
lpincatargos
authored andcommitted
tools: use a shallow clone of the npm/cli repository
Use a shallow clone instead of cloning the whole repository. PR-URL: #38463 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Darshan Sen <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]>
1 parent 10147f1 commit 8a83bfd

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tools/update-npm.sh

+1-2
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,11 @@ mkdir -p "$WORKSPACE"
2424

2525
cd "$WORKSPACE"
2626

27-
git clone [email protected]:npm/cli.git
27+
git clone --depth=1 --branch="v$NPM_VERSION" [email protected]:npm/cli.git
2828
cd cli
2929

3030
echo "Preparing npm release"
3131

32-
git checkout v"$NPM_VERSION"
3332
make
3433
make release
3534

0 commit comments

Comments
 (0)