[FIX] script git tool: support relative path when detect manifest file

This commit is contained in:
Mathieu Benoit 2024-10-02 01:18:03 -04:00
parent 2160b8264b
commit dd6ca6d7a2

View file

@ -257,7 +257,11 @@ class GitTool:
"""
lst_filter_group = filter_group.split(",") if filter_group else []
manifest_file = self.get_manifest_file(repo_path=repo_path)
filename = f"{repo_path}{manifest_file}"
if manifest_file.startswith("/home/"):
# This is a absolute path
filename = manifest_file
else:
filename = f"{repo_path}{manifest_file}"
lst_repo = []
with open(filename) as xml:
xml_as_string = xml.read()