SpongeForge/SpongeVanilla repo HEAD to specific build

How can I set my local SpongeForge/SpongeVanilla repo HEAD to match the last commit of a specific build?

Example: I know this SpongeVanilla version name: 1.10.2-5.0.0-BETA-136 and want to get the HEAD to commit a95d8ec9b86a0f1a4026945be6095ee6ced736b7. Doing this manually looking here is possible on SpongeVanilla, but tedious.
I think that’s not possible on SpongeForge by looking at this page.

How can this be done?

Currently, you’d need to download the build, and check the manifest of downloaded JAR. It contains an entry Git-Commit which refers to the current ref when the JAR was built. That should work on both platforms.

3 Likes

Thanks!
15 characters

I usually type <screwyoudiscourse/> and that fixes it.

5 Likes

Found another way: java -jar spongeVanilla.jar -v

That does not display the commit though? :stuck_out_tongue:

> java -jar spongevanilla-1.10.2-5.0.0-BETA-138.jar -v SpongeVanilla 1.10.2-5.0.0-BETA-138 SpongeAPI 5.0.0-SNAPSHOT-61eeec0
61eeec0 is the SpongeAPI commit, @Minecrell you are right!

1 Like