From 21404499bb676f8490fb27244e1e30b66e0dcf6b Mon Sep 17 00:00:00 2001 From: Ashley E Desimone Date: Fri, 13 Oct 2023 13:59:41 -0700 Subject: [PATCH] EdkRepo Manifest Parser: Add sparse checkout data to pin files Fixes #195 Signed-off-by: Ashley E Desimone --- edkrepo_manifest_parser/edk_manifest.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/edkrepo_manifest_parser/edk_manifest.py b/edkrepo_manifest_parser/edk_manifest.py index 6316f86..9522ae5 100644 --- a/edkrepo_manifest_parser/edk_manifest.py +++ b/edkrepo_manifest_parser/edk_manifest.py @@ -592,6 +592,10 @@ def generate_pin_etree(self, description, combo_name, repo_source_list): if subroot_m is not None: pin_root.append(subroot_m) + subroot_sparse = self._tree.find('SparseCheckout') + if subroot_sparse is not None: + pin_root.append(subroot_sparse) + hook_root = ET.SubElement(pin_root, 'ClientGitHookList') submodule_alt_url_root = None