We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e1adf87 commit d94d65cCopy full SHA for d94d65c
examples/push.js
@@ -51,18 +51,17 @@ fse.remove(path.resolve(__dirname, repoDir))
51
.then(function(remoteResult) {
52
remote = remoteResult;
53
54
- remote.setCallbacks({
55
- credentials: function(url, userName) {
56
- return nodegit.Cred.sshKeyFromAgent(userName);
57
- }
58
- });
59
-
60
// Create the push object for this remote
61
return remote.push(
62
["refs/heads/master:refs/heads/master"],
63
- null,
64
- repository.defaultSignature(),
65
- "Push to master");
+ {
+ callbacks: {
+ credentials: function(url, userName) {
+ return nodegit.Cred.sshKeyFromAgent(userName);
+ }
+ );
66
});
67
}).done(function() {
68
console.log("Done!");
0 commit comments