def _pop():
    repo = get_repo()
    check_repo_is_clean(repo)
    if repo.git.stash('list') == '':
        raise CommandException('There is nothing in the queue to pop from.')
    try:
        repo.git.stash('apply', '--index')
    except GitCommandError as e:
        if e.stderr in 'Try without --index':
            try:
                repo.git.stash('apply')
            except GitCommandError:
                raise CommandException('Unable to pop automatically. Resolve conflicts then run queue-pop-finish.')
        else:
            raise e

    _pop_finish()
dataset/ETHPy150Open kokosing/git-gifi/gifi/queue.py/_pop/swapped operands of `in`