summaryrefslogtreecommitdiffstats
path: root/repo
diff options
context:
space:
mode:
authorMartin Kelly <mkelly@xevo.com>2017-03-21 16:05:12 -0700
committerMartin Kelly <mkelly@xevo.com>2017-05-23 16:51:31 -0700
commite4e94d26ae81dbc9eb6e2f345fac7cd8c533cb9a (patch)
tree1fe598a2b3e89ae9a56fd640e6cd5b53a8704c7a /repo
parentffb4b890997b1799f188ec44f005d949feb643a7 (diff)
downloadgit-repo-e4e94d26ae81dbc9eb6e2f345fac7cd8c533cb9a.tar.gz
init: add --submodules to sync manifest submodules
repo sync can sync submodules via the --fetch-submodules option. However, if the manifest repo has submodules, those will not be synced. Having submodules in the manifest repo -- while not commonly done -- can be useful for inheriting a manifest from another project using <include> and layering changes on top of it. In this way, you can avoid having to deal with merge conflicts between your own manifests and the other project's manifests (for example, if you're managing an Android fork). Add a --submodule option to init that automatically syncs the submodules in the manifest repo whenever the manifest repo changes. Change-Id: I45d34f04517774c1462d7f233f482d1d81a332a8 Signed-off-by: Martin Kelly <mkelly@xevo.com>
Diffstat (limited to 'repo')
-rwxr-xr-xrepo3
1 files changed, 3 insertions, 0 deletions
diff --git a/repo b/repo
index dcd48e03..c1d86194 100755
--- a/repo
+++ b/repo
@@ -192,6 +192,9 @@ group.add_option('--archive',
192 dest='archive', action='store_true', 192 dest='archive', action='store_true',
193 help='checkout an archive instead of a git repository for ' 193 help='checkout an archive instead of a git repository for '
194 'each project. See git archive.') 194 'each project. See git archive.')
195group.add_option('--submodules',
196 dest='submodules', action='store_true',
197 help='sync any submodules associated with the manifest repo')
195group.add_option('-g', '--groups', 198group.add_option('-g', '--groups',
196 dest='groups', default='default', 199 dest='groups', default='default',
197 help='restrict manifest projects to ones with specified ' 200 help='restrict manifest projects to ones with specified '