add --tags to git fetch in manual upgrade

facilitates older `git` fetching tags so that it can actually upgrade properly
Josh Sleeper 2018-04-25 14:55:31 -07:00 committed by GitHub
parent 592c0be195
commit 04c27e23fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -175,7 +175,7 @@ For manual upgrade with `git` (requires git v1.7.10+):
```sh ```sh
( (
cd "$NVM_DIR" cd "$NVM_DIR"
git fetch origin git fetch --tags origin
git checkout `git describe --abbrev=0 --tags --match "v[0-9]*" $(git rev-list --tags --max-count=1)` git checkout `git describe --abbrev=0 --tags --match "v[0-9]*" $(git rev-list --tags --max-count=1)`
) && \. "$NVM_DIR/nvm.sh" ) && \. "$NVM_DIR/nvm.sh"
``` ```