rubenv / grunt-git

Git commands for grunt.
MIT License
227 stars 83 forks source link

Log failed to match expected pattern? #102

Open noppelmax opened 9 years ago

noppelmax commented 9 years ago

Hey Guys,

i tried to build my current commit hash into grunt. But it seems that something went wrong. This is my error:

Running "gitlog:target" (gitlog) task
Warning: Log failed to match exepected pattern:
{
  "hash": "5600e7484b146dd1bee77458ca37216190fdbd0d",
  "author": {
    "name": "<name>",
    "email": "<email>"
  },
  "date": "Thu, 19 Feb 2015 20:45:43 +0100",
  "subject": "<subject>",
  "body": "<body>"
}
 Use --force to continue.

Aborted due to warnings.

My code is

// grunt.initconfig...
gitlog: {
      target: {
        number: 1
      }
    },

So you have any idea how to solve it?

Thanks, Max

PS.: There is a typoerror in "expected". ;)

noppelmax commented 9 years ago

Ok i found, that it meight have problems with a subject like "test "commit"". The " seems to the problem, right?

smohamali commented 7 years ago

I'm experiencing the same issue