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:
parent
71aaf57045
commit
c7182b584f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue