Substitute for the getrev code. Unfortunately, it only fetches the commi...

...t-hash for HEAD.

This should be sufficient for our needs though.

Signed-off-by: carnie <elly1989@rocketmail.com>