resolveSha

Resolves ref to its full commit SHA; throws if the ref is unknown.