Skip to content

Document possible values of CloneOptions #330

@fatso83

Description

@fatso83

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions