From 4c6ad48c90941ea568befd8b77885bf02a918f9d Mon Sep 17 00:00:00 2001 From: Mayukha Vadari Date: Thu, 23 Jul 2026 16:32:48 -0400 Subject: [PATCH] roll back pre-commit changes --- bin/pre-commit/clang_tidy_check.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() )