Git version 2.28 introduces the init.defaultBranch configuration, which is used as the name for the default branch. If one isn't set, the fallback is still master for backwards compatibility. git-topics should follow suit.
https://github.blog/2020-07-27-highlights-from-git-2-28/