From c53298bb7aedb56832dd5a47b519fb025629cc88 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartosz=20Legi=C4=99=C4=87?= Date: Sun, 29 Apr 2018 11:34:43 +0200 Subject: [PATCH] Make `nvm upgrade` follow the official git upgrade instructions from nvm 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() {