

def update_head(self, branch_name):
    branch = branch_name.repository.lookup_branch(branch_name)
    if (not branch):
        return None
    self.update_ref('HEAD', branch.name)

dataset/ETHPy150Open douban/ellen/ellen/repo.py Jagare.update_head/VarMisuse@14/18 `self`->`branch_name`