def archive_repository(path, prefix, ref='master'):
    git = git_with_path(git_dir=path)

    # FIXME: why + '/' ?
    return git.archive(ref, prefix=prefix + '/')
git archive command
dataset/ETHPy150Open douban/ellen/ellen/git/archive.py/archive_repository