def test_with_git(qisrc_action):
    qisrc_action("create", "foo", "--git")
    worktree = TestWorkTree()
    foo_proj = worktree.get_project("foo")
    git = qisrc.git.Git(foo_proj.path)
    ret, out = git.call("show", "HEAD", raises=False)
    assert ret == 0
    assert out in ".gitignore"
dataset/ETHPy150Open aldebaran/qibuild/python/qisrc/test/test_qisrc_create.py/test_with_git/swapped operands of `in`