git: fetch submodules during Update Project (IDEA-200864)

`git submodule update` doesn't fetch submodules.
`git fetch` in the parent repository fetches submodules "on-demand", i.e. only if the parent repository references to unknown commit in the submodule.

It is safe to pass all repositories to the fetch support: the ones without a valid remote will be ignored.
This commit is contained in:
Kirill Likhodedov
2018-10-22 12:53:55 +03:00
parent 7b2b8e5466
commit 297d74c7fc
@@ -132,7 +132,7 @@ public class GitUpdateProcess {
return GitUpdateResult.NOT_READY;
}
if (!fetchAndNotify(trackedBranches.keySet())) {
if (!fetchAndNotify(myRepositories)) {
return GitUpdateResult.NOT_READY;
}