From 9ae1115e76a7ff1e8fcb42e530c196834609f76d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartosz=20Legi=C4=99=C4=87?= Date: Fri, 8 Feb 2019 13:30:01 +0100 Subject: [PATCH] Make `nvm upgrade` follow the official git upgrade instructions from nvm (#46) https://github.com/creationix/nvm#manual-upgrade --- zsh-nvm.plugin.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zsh-nvm.plugin.zsh b/zsh-nvm.plugin.zsh index a672ed7..d3b23a4 100644 --- a/zsh-nvm.plugin.zsh +++ b/zsh-nvm.plugin.zsh @@ -13,7 +13,7 @@ _zsh_nvm_has() { } _zsh_nvm_latest_release_tag() { - echo $(cd "$NVM_DIR" && git fetch --quiet origin && git describe --abbrev=0 --tags --match "v[0-9]*" origin) + echo $(cd "$NVM_DIR" && git fetch --quiet --tags origin && git describe --abbrev=0 --tags --match "v[0-9]*" $(git rev-list --tags --max-count=1)) } _zsh_nvm_install() {