threads / discuss / 39730

git submodule init --recursive?

Subject: git submodule init --recursive?

## tl;dr

2 messages between Jun 26, 2015 and Jun 26, 2015.

replies: 1people: 1as markdown or json

Robert Dailey· Jun 26, 2015, 01:04 UTC · lore
I have a few nested submodules, all use relative URLs such as:

../mysubmodule.git ../../tools/tool1.git

If I change my parent repo URL, I need to recursively update all remotes in each submodule. There is no `--recursive` option for `git submodule init`. What is the recommend method for accomplishing this?

Thanks in advance.
Robert Dailey· Jun 26, 2015, 01:08 UTC · re: Robert Dailey · lore

Re: git submodule init --recursive?

On Thu, Jun 25, 2015 at 8:04 PM, Robert Dailey <rcdailey.lists@gmail.com> wrote:
Show 10 quoted lines
> I have a few nested submodules, all use relative URLs such as:
>
> ../mysubmodule.git
> ../../tools/tool1.git
>
> If I change my parent repo URL, I need to recursively update all
> remotes in each submodule. There is no `--recursive` option for `git
> submodule init`. What is the recommend method for accomplishing this?
>
> Thanks in advance.
Never mind please, I'm a moron. I'm supposed to use sync for this task.
Been a long day and haven't had enough beer yet.

← back to recent threads