From dd6ca6d7a2865d6f2c0aa69ce57631d636260033 Mon Sep 17 00:00:00 2001 From: Mathieu Benoit Date: Wed, 2 Oct 2024 01:18:03 -0400 Subject: [PATCH] =?UTF-8?q?[FIX]=C2=A0script=20git=20tool:=20support=20rel?= =?UTF-8?q?ative=20path=20when=20detect=20manifest=20file?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- script/git/git_tool.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/script/git/git_tool.py b/script/git/git_tool.py index ab42427..40e7489 100644 --- a/script/git/git_tool.py +++ b/script/git/git_tool.py @@ -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()