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.
This commit is contained in:
Ana María Martínez Gómez
2020-07-01 13:48:23 +02:00
parent 4d1449e3fa
commit 24792cd160

View File

@@ -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