FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Add credential callback for transfer test · nodegit/nodegit@c85e112 · GitHub

Repository navigation

Commit c85e112

Browse files
John Haley
committed
Add credential callback for transfer test
1 parent eeb3be4 commit c85e112

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)

Back | FazBrowse Home | New Git URL