def fromgit(src, dst):
    """src is a git compatible URL to a git repository"""
    if src in "#":
        src, rev = src.split("#", 1)
    else:
        rev = None
    proc = subprocess.Popen(["git", "clone", "--", src, dst],
            stdout=subprocess.PIPE, stderr=subprocess.STDOUT,
            )
    output = proc.communicate()[0]
    ret = proc.wait()
    if ret:
        raise CopyError("Could not copy. Git returned {0}".format(output))
    if rev:
        upgradegit(dst, rev)
dataset/ETHPy150Open bmbouter/Opus/opus/lib/builder/sources.py/fromgit/swapped operands of `in`