def __str__(self):
    s = super().__str__()
    if (self.commit_distance and self.sha):
        s += '-{}-g{}'.format(self.commit_distance, self.sha)
    return s
def __str__(self):
    s = super().__str__()
    if (self.commit_distance and self.sha):
        s += '-{}-g{}'.format(self.commit_distance, self.sha)
    return s