Resolve a ref in #commit first before trying to find the Commit by sha.