You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Older versions of gitteh had an optional callback, like for openRepository().
However, just installing gitteh 0.17.1 on node 0.8.25, it seems like openRepository() now requires a callback:
coffee> repo = gitteh.openRepository("path/to/repo.git")
Error: Not enough arguments.
at module.exports.fn (/Users/iamwil/projects/code/cubehero/node_modules/gitteh/lib/args.js:53:13)
at Object.Gitteh.openRepository (/Users/iamwil/projects/code/cubehero/node_modules/gitteh/lib/gitteh.js:898:12)
at evalmachine.<anonymous>:3:20
at Object.exports.eval (/Users/iamwil/.nvm/v0.8.25/lib/node_modules/coffee-script/lib/coffee-script/coffee-script.js:146:17)
at Interface.run (/Users/iamwil/.nvm/v0.8.25/lib/node_modules/coffee-script/lib/coffee-script/repl.js:145:41)
at Interface.EventEmitter.emit (events.js:96:17)
at Interface._onLine (readline.js:200:10)
at Interface._line (readline.js:518:8)
at Interface._ttyWrite (readline.js:736:14)
at ReadStream.onkeypress (readline.js:97:10)
However, the documentation doesn't reflect this requirement. I'm wondering, is this a bug, or is the documentation now incorrect?
The text was updated successfully, but these errors were encountered:
@iamwilhelm Documentation is now fairly out of date, a new version of it will be coming soonish.
To answer you question though - callbacks are now mandatory, as the blocking (sync) code has been entirely removed from the bindings to reduce complexity. gitteh is now entirely asynchronous.
Older versions of gitteh had an optional callback, like for openRepository().
However, just installing gitteh 0.17.1 on node 0.8.25, it seems like openRepository() now requires a callback:
However, the documentation doesn't reflect this requirement. I'm wondering, is this a bug, or is the documentation now incorrect?
The text was updated successfully, but these errors were encountered: