From c7182b584fa25c744e4a0551303cb0580a94c5ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mart=C3=AD=20Bol=C3=ADvar?= Date: Thu, 23 Jan 2020 11:59:49 -0500 Subject: [PATCH] manifest: remove unnecessary Path() allocation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The git() method can take an os.PathLike. Signed-off-by: Martí Bolívar --- src/west/manifest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/west/manifest.py b/src/west/manifest.py index 736b000..ea8a436 100644 --- a/src/west/manifest.py +++ b/src/west/manifest.py @@ -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