Qubes-builder branch not found

When using Qubes-Builder, there is no “main” branch for template-whonix.

-> Updating sources for template-whonix...
--> Fetching from https://github.com/Whonix/qubes-template-whonix.git main (options: --depth=1)...
fatal: couldn't find remote ref main
make: *** [Makefile:224: template-whonix.get-sources] Error 1

If I override the branch to master in my builder.conf it works.

But there is no master branch for vmm-xen.

What to do? Surely qubes-builder isn’t broken, I just cloned it and 4.2 released a few weeks ago.

-> Updating sources for vmm-xen...
--> Fetching from https://github.com/QubesOS/qubes-vmm-xen.git master (options: --depth=1)...
warning: Could not find remote branch master to clone.
fatal: Remote branch master not found in upstream origin
make: *** [Makefile:224: vmm-xen.get-sources] Error 1