def tar_files(self, path: Path) -> bytes:
tarstream = BytesIO()<EOL>tar = tarfile.TarFile(fileobj=tarstream, mode='<STR_LIT:w>')<EOL>tar.add(str(path), arcname="<STR_LIT:data>", recursive=True)<EOL>tar.close()<EOL>return tarstream.getvalue()<EOL>
Returns a tar with the git repository.