Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for VCS installs not actually checking the commit id of current branch #636

Open
wants to merge 1 commit into
base: development
Choose a base branch
from

Conversation

ninjamuffin99
Copy link
Contributor

@ninjamuffin99 ninjamuffin99 commented Aug 5, 2024

when running install command, haxelib will check to see if the current branch matches up. However when you checked something out based off a commit id, it doesn't properly check to see if the current ref matches up with the one you're trying to install.

This PR simply changes one line, using Null coalescing we fall back to using the ref as a "currentBranch" if vcsBranchesByLibraryName ends returns null

this should also fix the issue of Library remains at "<unspecified>" since it never passed through the commit id to the branch checker

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.

1 participant