From a3061b501a1f947111e327ec15b66624e3bd7d57 Mon Sep 17 00:00:00 2001 From: Marc Mintel Date: Fri, 27 Feb 2026 19:36:13 +0100 Subject: [PATCH] fix(husky): correct pre-push exit code to avoid duplicate pushes --- .husky/pre-push | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.husky/pre-push b/.husky/pre-push index e4478c7..ac23f8d 100755 --- a/.husky/pre-push +++ b/.husky/pre-push @@ -37,9 +37,10 @@ do echo "✨ Success! The hook synchronized the versions and pushed the updated tag for you." echo "ℹ️ Note: The original push command was aborted in favor of the auto-push. This is normal." - exit 0 # Change to exit 0 to not show as an 'error' in vscode/terminal, though original push will still be technically 'failed' by git + exit 1 # We MUST exit 1 here to stop git from proceeding with the original push which would fail else echo "✨ Versions already in sync for $TAG." + exit 0 # Allow git to proceed with the original push since we didn't do it ourselves fi fi done