# [RFE] git submodule foreach where initialized

1 messages from 2021-12-11 to 2021-12-11. Participants: rsbecker@nexbridge.com.
Thread: https://gitlist.dev/t/57069

## rsbecker@nexbridge.com, 2021-12-11 18:32

Subject: [RFE] git submodule foreach where initialized
Message-ID: <024501d7eebd$6cc88830$46599890$@nexbridge.com>
URL: https://gitlist.dev/e/024501d7eebd%246cc88830%2446599890%24%40nexbridge.com

```
Hi All,

I have hit an edge condition that I think may need a command option. When
cloning, we sometimes ignore a specific submodule (because we don't need it
on the platform we are building in this case).

The git submodule foreach command reports an error: fatal: No url found for
submodule path 'sub1' in .gitmodules

In our situation, this can be bypassed because we don't care about sub1. My
thought is that some option like --init-only or --ignore-uninit might be
useful to bypass this condition and allow the foreach to run on all valid
submodules. Does that make sense?

Regards,
Randall




```
