From 884092225de5cf08aa453d025e0513dc2a42dce4 Mon Sep 17 00:00:00 2001 From: Dan Willemsen Date: Mon, 17 Aug 2015 15:29:10 -0700 Subject: [PATCH] Copy clone-depth in `repo manifest` This argument wasn't being copied, which caused syncs from generated manifests to pull down too much of the git history. Change-Id: I269bab788d4557267c081628b3f8c6aec7744e81 --- manifest_xml.py | 3 +++ 1 file changed, 3 insertions(+) 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): 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)))