From 78b101b2e8f9cbd289cdfeebc53513d012b5fd8f Mon Sep 17 00:00:00 2001 From: Shrikant Sharat Date: Fri, 25 May 2012 15:25:09 +0530 Subject: [PATCH] bundle-install doesn't automatically update. bundle-install command now only updates the plugins' repositories, if the `--update` argument is given to it. --- antigen.zsh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/antigen.zsh b/antigen.zsh index 9725646..79f0a35 100644 --- a/antigen.zsh +++ b/antigen.zsh @@ -81,10 +81,10 @@ bundle-install () { local clone_dir="$(echo "$spec" | awk '{print $4}')" if [[ -z "$(echo "$handled_repos" | grep -Fm1 "$url")" ]]; then - if [[ -d $clone_dir ]]; then - git --git-dir "$clone_dir/.git" pull - else + if [[ ! -d $clone_dir ]]; then git clone "$url" "$clone_dir" + elif $update; then + git --git-dir "$clone_dir/.git" pull fi handled_repos="$handled_repos\n$url" -- 2.0.0