# Q: Should "submodule set-url" add .gitmodules to index?

1 messages from 2021-08-30 to 2021-08-30. Participants: Ulrich Windl.
Thread: https://gitlist.dev/t/56402

## Ulrich Windl, 2021-08-30 08:56

Subject: Q: Should "submodule set-url" add .gitmodules to index?
Message-ID: <612C9D2D020000A100043924@gwsmtp.uni-regensburg.de>
URL: https://gitlist.dev/e/612C9D2D020000A100043924%40gwsmtp.uni-regensburg.de

```
Hi!

Realizing that some of my git submodule repositories were at the wrong path, I moved the repositories and updated a workspace using "git submodule set-url ...".
Checking the status I noticed that .gitmodules was not added to index (as opposed to a "git mv ...").
Is that intentional?
Seen in git 2.26.2.

Regards,
Ulrich Windl




```
