From: Junio C Hamano Date: Tue, 28 Feb 2023 23:35:19 GMT Subject: Re: [PATCH v2 5/6] tests: remove duplicate .gitmodules path Message-ID: In-Reply-To: <20230228185642.2357806-5-calvinwan@google.com> Calvin Wan writes: > Swapping `git add ` to `git submodule add ` > in a previous patch created a .gitmodules file with multiple > submodules pointing to the same path in certain tests. Fix tests > so that they are run on the original added submodule rather than > a separate manually configured submodule. Doesn't "git submodule add" have a way to give a specific name other than the default taken from the path? If "git add sub" is converted to "git submodule add --name subname ./sub", wouldn't these changes become unnecessary?