From 38a568c9c9b7f1893e1fc312cb6c21f19b7cbfe6 Mon Sep 17 00:00:00 2001 From: Peter Dave Hello Date: Tue, 11 Jul 2017 09:19:02 +0800 Subject: [PATCH] [New] Add `--auto` to git gc to speed up install & upgrade --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 92e027d..57fe6c5 100755 --- a/install.sh +++ b/install.sh @@ -125,7 +125,7 @@ install_nvm_from_git() { fi echo "=> Compressing and cleaning up git repository" - if ! command git --git-dir="$INSTALL_DIR"/.git --work-tree="$INSTALL_DIR" gc --aggressive --prune=now ; then + if ! command git --git-dir="$INSTALL_DIR"/.git --work-tree="$INSTALL_DIR" gc --auto --aggressive --prune=now ; then echo >&2 "Your version of git is out of date. Please update it!" fi return