diff --git a/bin/pre-commit/clang_tidy_check.py b/bin/pre-commit/clang_tidy_check.py index fd68c33adf..cf4808d2ea 100755 --- a/bin/pre-commit/clang_tidy_check.py +++ b/bin/pre-commit/clang_tidy_check.py @@ -49,7 +49,6 @@ def find_tool(name: str) -> str | None: def find_build_dir(repo_root: Path) -> Path | None: for name in (".build", "build"): candidate = repo_root / name - print("find_build_dir: candidate: ", candidate) if (candidate / "compile_commands.json").exists(): return candidate return None @@ -95,6 +94,7 @@ def main(): repo_root = Path( subprocess.check_output( ["git", "rev-parse", "--show-toplevel"], + cwd=Path(__file__).parent, text=True, ).strip() )