From a91b807ec9e3eadc0fd38f62ba814fdfa6dc2fba Mon Sep 17 00:00:00 2001 From: James Dinsdale Date: Fri, 24 Feb 2017 22:24:19 +0000 Subject: [PATCH] Add --depth=1 and --shallow-submodules options to the git clone when installing Allows for a faster clone, particularly on busy repositories, and since Zulu is managing the package we don't need the full commit history. --- src/commands/install.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/install.zsh b/src/commands/install.zsh index 024fbdd..2be8c2a 100755 --- a/src/commands/install.zsh +++ b/src/commands/install.zsh @@ -34,7 +34,7 @@ function _zulu_install_package() { # Clone the repository cd "$base/packages" - git clone --recursive $repo $package + git clone --recursive --depth=1 --shallow-submodules $repo $package packagefile="$config/packages" in_packagefile=$(cat $packagefile | grep -e '^'${package}'$')