From cdd23b4b0a7c14dba738f035e75ac640f1ca3e85 Mon Sep 17 00:00:00 2001 From: xegineering Date: Wed, 2 Oct 2024 21:00:25 +0200 Subject: Fix check.py as pre-commit hook The file did not work properly if used via Git commit hook symlink. --- check.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'check.py') diff --git a/check.py b/check.py index 47819a1..bec3fb4 100755 --- a/check.py +++ b/check.py @@ -9,7 +9,7 @@ def main() -> None: subprocess.run( ["go", "test", "-v"], check=True, - cwd=pathlib.Path(__file__).parent, + cwd=pathlib.Path(__file__).resolve().parent, ) -- cgit v1.2.3-70-g09d2