This command is broken when running in a repo which is not the default nf-core/modules (or possibly a direct mirror of).
The underlying class does not currently take --git-remote in it's init and when selecting the module it uses ModulesRepo() which will always use the default NF-Core remote.
tools 2.7dev0