From 8d0d219d6f179def61158166d83e22db4770a46b Mon Sep 17 00:00:00 2001 From: Shrikant Sharat Date: Fri, 13 Jul 2012 16:48:58 +0530 Subject: [PATCH] Fix #9 Update command created extra clone. The update command is not aware of the --branch functionality and is not updated to behave well in its precense. Because of this, it creates a clone to a incorrect directory instead of updating the existing clone directory. --- antigen.zsh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/antigen.zsh b/antigen.zsh index f1e943e..56d89bd 100644 --- a/antigen.zsh +++ b/antigen.zsh @@ -75,9 +75,12 @@ antigen-bundles () { antigen-update () { # Update your bundles, i.e., `git pull` in all the plugin repos. - -antigen-echo-record | awk '{print $1}' | sort -u | while read url; do - -antigen-ensure-repo --update "$url" - done + -antigen-echo-record \ + | awk '{print $1 "|" $4}' \ + | sort -u \ + | while read url_line; do + -antigen-ensure-repo --update "${url_line%|*}" "${url_line#*|}" + done } -antigen-get-clone-dir () { -- 2.0.0