Grab correct git revision