Skip to content

Commit e6ade7e

Browse files
committed
build: only clone with depth 1 since we don't need history
1 parent dbaa8ab commit e6ade7e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

bin/build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ fi
2323
# Build Highlight.js
2424
HLJS=$(mktemp -d)
2525
cd "$HLJS"
26-
git clone -b "$HLJS_VERSION" https://github.com/highlightjs/highlight.js.git
26+
git clone --depth 1 -b "$HLJS_VERSION" https://github.com/highlightjs/highlight.js.git
2727
cd highlight.js
2828

2929
npm install --package-lock-only
@@ -34,7 +34,7 @@ node tools/build.js xml properties http
3434
# Build Pako
3535
PAKO=$(mktemp -d)
3636
cd "$PAKO"
37-
git clone -b "$PAKO_VERSION" https://github.com/nodeca/pako.git
37+
git clone --depth 1 -b "$PAKO_VERSION" https://github.com/nodeca/pako.git
3838
cd pako
3939

4040
npm install --package-lock-only

0 commit comments

Comments
 (0)