Fix commit message formatting

Git needs a blank line between the summary and the longer description.
And `echo` doesn't interpret `\n` by default.
This commit is contained in:
Maikel Linke
2023-04-20 11:06:37 +10:00
parent f71e5ee43c
commit 1955a6719c

View File

@@ -26,7 +26,8 @@ grep "This cop supports safe autocorrection" -A 5 .rubocop_todo.yml\
echo "Trying to autocorrect safely: $cop"
bundle exec rubocop --regenerate-todo --except "$cop"
echo "Safely autocorrect $cop\n" > .git/COMMIT_EDITMSG
echo "Safely autocorrect $cop" > .git/COMMIT_EDITMSG
echo "" >> .git/COMMIT_EDITMSG
bundle exec rubocop --autocorrect >> .git/COMMIT_EDITMSG
git add --all
git commit --file .git/COMMIT_EDITMSG