Skip to content

Commit 4bee8a8

Browse files
author
John Haley
committed
Add credential callback for transfer test
1 parent b746bea commit 4bee8a8

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

test/tests/remote.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,9 @@ describe("Remote", function() {
125125
})
126126
.then(function(remote) {
127127
remote.setCallbacks({
128+
credentials: function(url, userName) {
129+
return NodeGit.Cred.sshKeyFromAgent(userName);
130+
},
128131
certificateCheck: function() {
129132
return 1;
130133
},

0 commit comments

Comments
 (0)