Getting VERSION from a git commit

If I want to condition code on a particular commit in the upcoming master/release branch, how can I figure out the VERSION value from the commit hash? Is there some lookup table?

From the root of the Julia repo:

./contrib/commit-name.sh $COMMIT_HASH

I am using it wrong?

$ ./contrib/commit-name.sh a1a35583500d68b1f69b662bac6dea9ec56e59eb
fatal: Path 'VERSION' exists on disk, but not in 'a1a35583500d68b1f69b662bac6dea9ec56e59eb'.
./contrib/commit-name.sh: 13: [: =: unexpected operator
fatal: bad object a1a35583500d68b1f69b662bac6dea9ec56e59eb
fatal: bad object a1a35583500d68b1f69b662bac6dea9ec56e59eb
./contrib/commit-name.sh: 27: [: =: unexpected operator
./contrib/commit-name.sh: 30: [: =: unexpected operator

No, that is the correct usage. What commit sha is that?

To be clear, this is for Julia commits => Julia version.

The hash is from

https://github.com/JuliaLang/julia/pull/31191/commits

Okay, use the commit that was actually merged to master, i.e. https://github.com/JuliaLang/julia/commit/8c445663547791e59f33f9e8d49b276332107614

$ ./contrib/commit-name.sh 8c445663547791e59f33f9e8d49b276332107614       
1.2.0-DEV.573