Skip to content

Commit 881aa02

Browse files
author
Marek Fiala
committed
feat: Set --depth 1 option when clonning esp-idf
To reduce the entire installer size.
1 parent d35b76d commit 881aa02

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Build-Installer.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ function PrepareOfflineBranches {
313313
git -C "$BundleDir" fetch
314314
} else {
315315
"Performing full clone."
316-
git clone --branch "$OfflineBranch" -q --single-branch --shallow-submodules --recursive https://github.com/espressif/esp-idf.git "$BundleDir"
316+
git clone --branch "$OfflineBranch" --depth 1 -q --single-branch --shallow-submodules --recursive https://github.com/espressif/esp-idf.git "$BundleDir"
317317

318318
# Remove hidden attribute from .git. Inno Setup is not able to read it.
319319
attrib "$BundleDir\.git" -s -h

0 commit comments

Comments
 (0)