Skip to content

Commit

Permalink
Make nvm upgrade follow the official git upgrade instructions from …
Browse files Browse the repository at this point in the history
  • Loading branch information
bibixx authored and lukechilds committed Feb 8, 2019
1 parent 2d88fd5 commit 9ae1115
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zsh-nvm.plugin.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 9ae1115

Please sign in to comment.