new way of retrieving the commit hash