Added lookupRefCommit