# Re: \[PATCH v2 5/6\] tests: remove duplicate .gitmodules path

- From: Junio C Hamano \<hidden\>
- Date: 2023-02-28 23:35:24 
- List: git
- Page: https://ratatoskr.run/git/2023/02/7965901
- Thread: https://ratatoskr.run/git/2023/02/7965901/t.md

```text
Calvin Wan [ref] writes:

> Swapping `git add <submodule>` to `git submodule add <submodule>`
> 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?

```
