chusiang / git-repo

Automatically exported from code.google.com/p/git-repo
Apache License 2.0
1 stars 1 forks source link

Is there an option to `repo download --sync-submodules`? #197

Open antonysigma opened 4 years ago

antonysigma commented 4 years ago
repo sync --fetch-submodules or add sync-s="true" to the project/in defaults in 
the manifest

Originally posted by @GoogleCodeExporter in https://github.com/chusiang/git-repo/issues/174#issuecomment-82675895

I have a similar issue with #174, where I was able to pull all submodules using repo sync --fetch-submodules when I set up project. Essentially, my project has the following structure:

root/path/to/project root/path/to/project/submodule1 root/path/to/project/submodule2

However, I reached a corner case when my co-workers submitted a Gerrit patchset to update the submodule1. I tried checking out their patchset via the command repo download -c path/to/project XX/YY, where XX/YY is the patchset id of the project, but the submodules is still not updated.

Is there an option to repo download --sync-submodules path/to/project XX/YY?