From cb442e7d6f7d33985a0a7409e2c196d9a5e4d358 Mon Sep 17 00:00:00 2001 From: Stephen Waits Date: Wed, 2 Dec 2026 11:49:32 -0700 Subject: [PATCH] Fix command-name substitution and rules move with duplicate at destination --- sisi/hooks.py | 2 +- sisi/rules.py | 3 ++- tests/test_core.py | 11 +++++++++++ tests/test_plan.py | 5 +++-- 4 files changed, 17 insertions(+), 4 deletions(-) diff --git a/sisi/hooks.py b/sisi/hooks.py index 31cb390..37d22bb 100644 --- a/sisi/hooks.py +++ b/sisi/hooks.py @@ -88,7 +88,7 @@ def own(command): def say(text): """A hook message, naming sisi by its full path when `sisi` is not on PATH.""" import shutil - return text if shutil.which("sisi") else re.sub(r"(?