Installing a specific snapshot version of Openhab

At this moment the last snapshot (2.4.0 build 1399 or 1400) gives me troubles, as I explained in Problem with Anel HUT in latest snapshot (openHAB 2.4.0 Build #1399)

The version I do have installed instead, openHAB 2.3.0 Build #1260 works, yet gives problems with Fronius crashing from time to time.
(everything else seems to keep working)

I know that the fix I need was done on the fronius code on 22 July
https://github.com/openhab/openhab2-addons/commit/1cba8f1d35280353221ae1cb71b3bad542a93cda#diff-cbc271c4f1c5a06ffda7e2f31c156523

And on 17 September another null point fix was done on the fronius code
https://github.com/openhab/openhab2-addons/commit/70ade44fc489acc035500e3dfee5630594d66864#diff-cbc271c4f1c5a06ffda7e2f31c156523

I know how to do a install of a specific Openhab version

sudo apt-get install openhab2=2.3.0-1
sudo apt-get install openhab2-addons=2.3.0-1
sudo apt-get install openhab2-addons-legacy=2.3.0-1

What I don’t know, is how to find out what snapshot version the code of 22 July or 17 September is in.

And next to that, what is the format to call in apt-get to install that snapshot version.

(I tried openhab2=2.4.0-1399 to try that snapshot, that was wrong. )

I think this was answered here: