Skip to content

Conversation

ghosind
Copy link
Owner

@ghosind ghosind commented Apr 24, 2025

Fetch DVM Git data with the --all option to ensure that tags are pulled.

Fix #68 .

dvm.sh Outdated
git checkout "$DVM_LATEST_VERSION"

dvm_print "DVM has upgrade to latest version, please restart your terminal or run \`source $DVM_PROFILE_FILE\` to apply changes."
if git reset --hard HEAD && git fetch --all && git pull origin master --tag && git checkout "$DVM_LATEST_VERSION"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure the fetch --all is necessary

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fetch --all should be enough for this problem, and I keep pull --tags to double check

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The branch to fetch is not in a global variable?

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, it is in the global variable DVM_LATEST_VERSION

@ghosind ghosind merged commit 6e6f9eb into master May 28, 2025
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Upgrade from 0.9.x to 0.10.x failure
2 participants