':return: The ID for the latest commit in the REMOTE repo.'

def get_remote_head_id(self):

    self.fetch()
    branch_origin = ('origin/%s' % get_current_branch())
    all_refs = self._repo.remotes.origin.refs
    origin_master = [ref for ref in all_refs if (ref.name == branch_origin)][0]
    return origin_master.commit.hexsha
