From c31c66b17e8c156050ead0f6161627486b2e3633 Mon Sep 17 00:00:00 2001 From: Alexander Tesfamichael Date: Sat, 15 Dec 2018 14:28:15 +0100 Subject: [PATCH] Use more reliable method of fetching latest tag --- 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..7e26545 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 && git describe --tags `git rev-list --tags --max-count=1`) } _zsh_nvm_install() {