Skip to content

Commit 8d25941

Browse files
committed
Fix pull example fetchOptions
1 parent 232dbb1 commit 8d25941

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

examples/pull.js

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,13 @@ nodegit.Repository.open(path.resolve(__dirname, repoDir))
1111
repository = repo;
1212

1313
return repository.fetchAll({
14-
credentials: function(url, userName) {
15-
return nodegit.Cred.sshKeyFromAgent(userName);
16-
},
17-
certificateCheck: function() {
18-
return 1;
14+
callbacks: {
15+
credentials: function(url, userName) {
16+
return nodegit.Cred.sshKeyFromAgent(userName);
17+
},
18+
certificateCheck: function() {
19+
return 1;
20+
}
1921
}
2022
});
2123
})

0 commit comments

Comments
 (0)