Skip to content
New issue

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

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

Already on GitHub? # to your account

Make sure Git SHA is for the Flixel repository #3322

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

Conversation

ACrazyTown
Copy link
Contributor

@ACrazyTown ACrazyTown commented Dec 25, 2024

git rev-parse HEAD (which is what FlxGitSHA.hx uses to get the current commit SHA) will get the current commit of a git repostory, EVEN in subdirectories.
So if you have a project with a git repository and a .haxelib folder with a haxelib release of Flixel, FlxGitSHA will get the project's current git commit thinking that it's Flixel's current commit

This PR adds a --show-toplevel argument to the command which returns the path of the git repository and compares it with the path from getLibraryPath()

Merry Christmas!

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant