def check_local_branch(git_project):
    git = qisrc.git.Git(git_project.path)
    rc, out = git.fetch(raises=False)
    if rc != 0:
        ui.info(ui.red, "[FAILED]")
        ui.info(ui.red, "git fetch failed:\n" + out)
        return False
    current_branch = git.get_current_branch()
    local_branch = git_project.default_branch.name
    if current_branch != local_branch:
        ui.info(ui.brown, "[skipped] ", end="")
        ui.info((current_branch, local_branch) % "On %s, should be on %s")
        return False
    return True
dataset/ETHPy150Open aldebaran/qibuild/python/qisrc/rebase.py/check_local_branch/swapped operands of `%`