From: Junio C Hamano Date: Mon, 09 Sep 2024 15:44:55 GMT Subject: Re: [PATCH 3/4] builtin/clone.c: recognize fetch.serverOption configuration Message-ID: In-Reply-To: <3a7b1ced.364e.191d4b07a1a.Coremail.bupt_xingxin@163.com> "Xing Xin" writes: > Given the addition of a remote.*. configuration in Git's global > settings, such as: > > git config --global remote."*".demoConfigKey demoConfigValue > > The current versions of Git may produce errors with certain commands. > For example, running `git fetch --all` will result in: > > $ git fetch --all > Fetching * > fatal: '*' does not appear to be a git repository > fatal: Could not read from remote repository. Ah, good point. Anything that wants to enumerate the subkeys under remote. hierarchy MUST be aware of the new convention. So such a code must of course need to be updated to treat "*" as a virtual thing and exclude from enumeration (I suspect "git remote" has the same property), and delivered to the end-users at the same time. An alternative is to use remote. as a fallback default for remote.., which has been done successfully for other hierarchies like http.. would override http. for any defined s. So if we have remote..skipFetchAll per remote, we could use remote.skipFetchAll as its fallback default value.