We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 232dbb1 commit 8d25941Copy full SHA for 8d25941
examples/pull.js
@@ -11,11 +11,13 @@ nodegit.Repository.open(path.resolve(__dirname, repoDir))
11
repository = repo;
12
13
return repository.fetchAll({
14
- credentials: function(url, userName) {
15
- return nodegit.Cred.sshKeyFromAgent(userName);
16
- },
17
- certificateCheck: function() {
18
- return 1;
+ callbacks: {
+ credentials: function(url, userName) {
+ return nodegit.Cred.sshKeyFromAgent(userName);
+ },
+ certificateCheck: function() {
19
+ return 1;
20
+ }
21
}
22
});
23
})
0 commit comments