grab correct git rev before changing dir