def METHOD_NAME(self):
    """
    Will ensure that commit exists in the DB.
    Return:
      The models.Commit that is created.
    """
    self.create_branch()
    self.commit_record, self.commit_created = models.Commit.objects.get_or_create(branch=self.branch_record, sha=self.sha)
    if self.commit_created:
        logger.info("Created %s commit %s" % (self.server.name, str(self.commit_record)))
    if not self.commit_record.ssh_url and self.ssh_url:
        self.commit_record.ssh_url = self.ssh_url
        self.commit_record.save()
    return self.commit_record