'Get the SHA1 for a reference name.
This method follows all symbolic references.'

def __getitem__(self, name):

    (_, sha) = self.follow(name)
    if (sha is None):
        raise KeyError(name)
    return sha
