I have given up trying to get this library working due to not being able to simply clone a public GH repo. The solution seems to lie somewhere in CloneOptions, but this options object seems totally undocumented, apart from referencing its C-type. Looking up git_clone_options, I cannot seem to find even the options mentioned in the examples.
This example uses { ignoreCertErrors: 1}), but I cannot seem to find any such thing mentioned in the C documentation.
Currently, trying to check out a public repo just leaves me with an error, and no way to solve it:
nodegit.Clone.clone("git@github.com:nodegit/nodegit", path.toString(), null)
.then(0, function(err){
console.log(err); // ==> 'authentication required but no callback set'
})
I am not the only one left in confusion either.
I have given up trying to get this library working due to not being able to simply clone a public GH repo. The solution seems to lie somewhere in CloneOptions, but this options object seems totally undocumented, apart from referencing its C-type. Looking up git_clone_options, I cannot seem to find even the options mentioned in the examples.
This example uses
{ ignoreCertErrors: 1}), but I cannot seem to find any such thing mentioned in the C documentation.Currently, trying to check out a public repo just leaves me with an error, and no way to solve it:
I am not the only one left in confusion either.