From 33e5c106bf5c72f4a49de144340200b8034af43a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mart=C3=AD=20Bol=C3=ADvar?= Date: Wed, 22 Jan 2020 09:39:16 -0800 Subject: [PATCH] project.py: don't force a git call in west manifest MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit As a WestCommand, this context knows its topdir. Passing this to Manifest.from_file() is enough to avoid shelling out to git when loading the manifest again, which we should do. Signed-off-by: Martí Bolívar --- src/west/app/project.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/west/app/project.py b/src/west/app/project.py index 53fa424..4e75dce 100644 --- a/src/west/app/project.py +++ b/src/west/app/project.py @@ -485,7 +485,7 @@ class ManifestCommand(_ProjectCommand): # # The code in main.py is responsible for handling any errors # and printing useful messages. - manifest = Manifest.from_file() + manifest = Manifest.from_file(topdir=self.topdir) dump_kwargs = {'default_flow_style': False, 'sort_keys': False}