Skip to content

Commit

Permalink
Add --depth=1 and --shallow-submodules options to the git clone when …
Browse files Browse the repository at this point in the history
…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.
  • Loading branch information
molovo committed Feb 25, 2017
1 parent b87e54f commit a91b807
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/commands/install.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -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}'$')
Expand Down

0 comments on commit a91b807

Please sign in to comment.