We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e1adf87 commit baa66b0Copy full SHA for baa66b0
examples/fetch.js
@@ -4,8 +4,10 @@ var path = require("path");
4
nodegit.Repository.open(path.resolve(__dirname, "../.git"))
5
.then(function(repo) {
6
return repo.fetch("origin", {
7
- credentials: function(url, userName) {
8
- return nodegit.Cred.sshKeyFromAgent(userName);
+ callbacks: {
+ credentials: function(url, userName) {
9
+ return nodegit.Cred.sshKeyFromAgent(userName);
10
+ }
11
}
12
});
13
}).done(function() {
0 commit comments