mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user