Skip to content

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!

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