node-gitlog icon indicating copy to clipboard operation
node-gitlog copied to clipboard

'Warning: Log failed to match exepected pattern' for multi-line commits

Open edoloughlin opened this issue 9 years ago • 1 comments

I did a rebase -i and squashed a few commits, resulting in a multi-line commit message, which I want to keep. The gitlog task fails with the following message:

Running "gitlog:development" (gitlog) task
Warning: Log failed to match exepected pattern:

{
  "hash": "6430184b21e05b4f0a9fdb430078535ffcb216d4",
  "author": {
    "name": "<my name>",
    "email": "<my email>"
  },
  "date": "Thu, 14 May 2015 10:22:20 +0100",
  "subject": "<Message>",
  "body": "<multiline message follows>

...on several lines

...like this

"
}
 Use --force to continue.

Aborted due to warnings.

edoloughlin avatar May 14 '15 16:05 edoloughlin

Thanks for the report. It must be something to do with the way we're parsing out the commit parts by new line characters. Let me have a think about a solution or feel free to send a pull request

domharrington avatar May 21 '15 08:05 domharrington