From 24792cd1609df26dd8c2222186fb2388750df639 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ana=20Mar=C3=ADa=20Mart=C3=ADnez=20G=C3=B3mez?= Date: Wed, 1 Jul 2020 13:48:23 +0200 Subject: [PATCH] Fix unrestored stashed changes in post-commit hook If the style checker of the rule linter failed, the stashed changes were not restored. There is no reason to exist with an error code in a post hook. In pre hooks this causes the action to be aborted. --- scripts/hooks/post-commit | 2 -- 1 file changed, 2 deletions(-) diff --git a/scripts/hooks/post-commit b/scripts/hooks/post-commit index ba85f102..42953c4f 100755 --- a/scripts/hooks/post-commit +++ b/scripts/hooks/post-commit @@ -18,7 +18,6 @@ if [ $? == 0 ]; then else echo 'Style checker failed 😭'; echo 'Check style-checker-output.log for details'; - exit 1; fi # Run rule linter and print state (it doesn't block the commit) @@ -28,7 +27,6 @@ if [ $? == 0 ]; then else echo 'Rule linter failed 😭'; echo 'Check rule-linter-output.log for details'; - exit 2; fi # Restore stashed changes