Sfoglia il codice sorgente

Merge "Copy clone-depth in `repo manifest`"

Dan Willemsen 10 anni fa
parent
commit
6d35d676db
1 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  1. 3 0
      manifest_xml.py

+ 3 - 0
manifest_xml.py

@@ -303,6 +303,9 @@ class XmlManifest(object):
       if p.sync_s:
         e.setAttribute('sync-s', 'true')
 
+      if p.clone_depth:
+        e.setAttribute('clone-depth', str(p.clone_depth))
+
       if p.subprojects:
         subprojects = set(subp.name for subp in p.subprojects)
         output_projects(p, e, list(sorted(subprojects)))