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
{{ message }}
Repository navigation
TypeError: Cannot call method 'clone' of undefined #91
git.Repo.clone("https://github.com/nodegit/nodegit.git", path, null, function(
^
TypeError: Cannot call method 'clone' of undefined
at Object.<anonymous> (/Users/attila/Projects/node-testing/git-example.js:5:10)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Function.Module.runMain (module.js:497:10)
at startup (node.js:119:16)
at node.js:901:3
It is also not entirely clear how to try cloning a repository based on the docs. Could you add an example please that shows how to require the module properly and then how to clone a repo? Thank you.
Activity
nkallen commentedon Sep 8, 2013
Sorry, this is somewhat confusing and my fault. You need to depend on master
If you want to use the latest API (which has clone).
@tbranyen maybe we should publish the artifact now to avoid confusion?
tbranyen commentedon Sep 8, 2013
@nkallen published
attilagyorffy commentedon Sep 8, 2013
thanks for getting back to me guys. i'll try this tomorrow.
nkallen commentedon Sep 10, 2013
We've actually now published an artifact, 0.1.0