diff --git a/antigen.zsh b/antigen.zsh index 44ede73..ee1bad9 100644 --- a/antigen.zsh +++ b/antigen.zsh @@ -204,9 +204,9 @@ antigen-update () { if [[ $url == *\|* ]]; then local current_branch=${$(--plugin-git symbolic-ref HEAD)##refs/heads/} local requested_branch="${url#*|}" - # Only do the checkout when we are not already on the branch + # Only do the checkout when we are not already on the branch. [[ $requested_branch != $current_branch ]] && - --plugin-git checkout $requested_branch + --plugin-git checkout $requested_branch fi if ! [[ -z $old_rev || $old_rev == $new_rev ]]; then