Filtering Branches when Mirroring

I have a repo on github[1] that I wish to mirror to Gitea, in order to fork off of. It’s not a regular git repo - it has 8k branches. But I only want one.

Is it possible to filter the branches included in a migration/mirror?


It appears I am looking for the ability to “sparse-mirror” (my phrasing). It’s unlikely that Gitea as this so I’ll probably have to proxy it, but the details are here:

By branch

By directory