From 630fd0262940476aeb69ab4862275d803871563b Mon Sep 17 00:00:00 2001 From: Facundo Espinosa Date: Sun, 31 Dec 2023 21:58:24 -0300 Subject: [PATCH] Return the right exit code to stop the commit from happening if there are failures --- .../generators/rails/app/templates/bin/hooks/pre-commit.tt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/railties/lib/rails/generators/rails/app/templates/bin/hooks/pre-commit.tt b/railties/lib/rails/generators/rails/app/templates/bin/hooks/pre-commit.tt index 57c0ee258cf64..0908d71b29167 100644 --- a/railties/lib/rails/generators/rails/app/templates/bin/hooks/pre-commit.tt +++ b/railties/lib/rails/generators/rails/app/templates/bin/hooks/pre-commit.tt @@ -1 +1 @@ -system("bin/rubocop") +system("bin/rubocop", exception: true)