Added resolveComittish() to normalize any committish to a SHA1.