diff options
author | Dan Willemsen <dwillemsen@google.com> | 2015-08-19 17:50:15 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2015-08-19 17:50:15 +0000 |
commit | 6d35d676dbaadd96b785f188cf04563bf1165831 (patch) | |
tree | aedba96790f8496756bd67c81544bd19fe5a0da7 | |
parent | bdb5271de3fafb9fbec3fde0e8e95e5b061ab0f5 (diff) | |
parent | 884092225de5cf08aa453d025e0513dc2a42dce4 (diff) | |
download | git-repo-6d35d676dbaadd96b785f188cf04563bf1165831.tar.gz |
Merge "Copy clone-depth in `repo manifest`"
-rw-r--r-- | manifest_xml.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/manifest_xml.py b/manifest_xml.py index 7e719600..6dc01a47 100644 --- a/manifest_xml.py +++ b/manifest_xml.py | |||
@@ -303,6 +303,9 @@ class XmlManifest(object): | |||
303 | if p.sync_s: | 303 | if p.sync_s: |
304 | e.setAttribute('sync-s', 'true') | 304 | e.setAttribute('sync-s', 'true') |
305 | 305 | ||
306 | if p.clone_depth: | ||
307 | e.setAttribute('clone-depth', str(p.clone_depth)) | ||
308 | |||
306 | if p.subprojects: | 309 | if p.subprojects: |
307 | subprojects = set(subp.name for subp in p.subprojects) | 310 | subprojects = set(subp.name for subp in p.subprojects) |
308 | output_projects(p, e, list(sorted(subprojects))) | 311 | output_projects(p, e, list(sorted(subprojects))) |