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!

Copy link
Member

@Geokureli Geokureli left a comment

Choose a reason for hiding this comment

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

FlxGitSHA was deprecated, very recently. Use the new FlxVersionMacro tool, instead

@ACrazyTown
Copy link
Contributor Author

I wasn't using it directly. It's used by FlxVersion and by extension the debugger to show the version in the top left. I'm not sure if it still happens with the new versioning tool, I'll have to check. Either way I'll close this

@ACrazyTown ACrazyTown closed this Dec 13, 2025
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.

2 participants