Added commit ref/name to SHA resolution.