Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 8a83bfd

Browse filesBrowse 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 <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Richard Lau <rlau@redhat.com> Reviewed-By: Darshan Sen <raisinten@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
1 parent 10147f1 commit 8a83bfd
Copy full SHA for 8a83bfd

File tree

Expand file treeCollapse file tree

1 file changed

+1
-2
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-2
lines changed
Open diff view settings
Collapse file

‎tools/update-npm.sh‎

Copy file name to clipboardExpand all lines: tools/update-npm.sh
+1-2Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,11 @@ mkdir -p "$WORKSPACE"
2424

2525
cd "$WORKSPACE"
2626

27-
git clone git@github.com:npm/cli.git
27+
git clone --depth=1 --branch="v$NPM_VERSION" git@github.com: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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.