frinyvonnick / gitmoji-changelog

A changelog generator for gitmoji 😜
https://www.npmjs.com/package/gitmoji-changelog
MIT License
390 stars 49 forks source link

[BUG] error when generating changelog in v2.0.0-alpha.1 #98

Closed bgauduch closed 5 years ago

bgauduch commented 5 years ago

When using the v2.0.0-alpha.1, if the CHANGELOG.md already exist (second generation), I get the following error :

$ gitmoji-changelog
▶  start     gitmoji-changelog v2.0.0-alpha.1
ℹ  info      update ./CHANGELOG.md
events.js:174
      throw er; // Unhandled 'error' event
      ^

Error: fatal: ambiguous argument 'vnext..HEAD': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'

    at DestroyableTransform._transform (/usr/src/gitmoji-changelog/packages/gitmoji-changelog-core/node_modules/git-raw-commits/index.js:83:30)
    at DestroyableTransform.Transform._read (/usr/src/gitmoji-changelog/node_modules/readable-stream/lib/_stream_transform.js:184:10)
    at DestroyableTransform.Transform._write (/usr/src/gitmoji-changelog/node_modules/readable-stream/lib/_stream_transform.js:172:83)
    at doWrite (/usr/src/gitmoji-changelog/node_modules/readable-stream/lib/_stream_writable.js:428:64)
    at writeOrBuffer (/usr/src/gitmoji-changelog/node_modules/readable-stream/lib/_stream_writable.js:417:5)
    at DestroyableTransform.Writable.write (/usr/src/gitmoji-changelog/node_modules/readable-stream/lib/_stream_writable.js:334:11)
    at Socket.ondata (_stream_readable.js:693:20)
    at Socket.emit (events.js:203:15)
    at addChunk (_stream_readable.js:288:12)
    at readableAddChunk (_stream_readable.js:265:13)
    at Socket.Readable.push (_stream_readable.js:224:10)
    at Pipe.onStreamRead [as onread] (internal/stream_base_commons.js:94:17)
Emitted 'error' event at:
    at DestroyableTransform._transform (/usr/src/gitmoji-changelog/packages/gitmoji-changelog-core/node_modules/git-raw-commits/index.js:83:16)
    at DestroyableTransform.Transform._read (/usr/src/gitmoji-changelog/node_modules/readable-stream/lib/_stream_transform.js:184:10)
    [... lines matching original stack trace ...]
    at Pipe.onStreamRead [as onread] (internal/stream_base_commons.js:94:17)
frinyvonnick commented 5 years ago

Closed by #101