Fix generation of invalid JSON when a commit message contains double-quotes.
Reverse the order of commits, so the earliest ones come at the top