Returns a tar with the git repository.

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