project.py: don't force a git call in west manifest

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 <marti.bolivar@nordicsemi.no>
This commit is contained in:
Martí Bolívar 2020-01-22 09:39:16 -08:00 committed by Marti Bolivar
parent 2101a7af38
commit 33e5c106bf
1 changed files with 1 additions and 1 deletions

View File

@ -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}