manifest: remove unnecessary Path() allocation

The git() method can take an os.PathLike.

Signed-off-by: Martí Bolívar <marti.bolivar@nordicsemi.no>
This commit is contained in:
Martí Bolívar 2020-01-23 11:59:49 -05:00 committed by Marti Bolivar
parent 71aaf57045
commit c7182b584f
1 changed files with 1 additions and 1 deletions

View File

@ -661,7 +661,7 @@ class Manifest:
f'searching for manifest repository root from {start}')
repo_root = Path(mp.git('rev-parse --show-toplevel',
capture_stdout=True,
cwd=str(Path(self.path).parent)).
cwd=start).
stdout[:-1]. # chop off newline
decode('utf-8')) # hopefully this is safe
p = repo_root / imp