update sshKey detection
This commit is contained in:
@ -19,7 +19,11 @@ export let clone = (options:{from:string,to:string}) => {
|
||||
callbacks: {
|
||||
certificateCheck: function() { return 1; },
|
||||
credentials: function(url, userName) {
|
||||
return plugins.nodegit.Cred.sshKeyFromAgent(userName);
|
||||
let gitRepo = new plugins.smartstring.GitRepo(url);
|
||||
let sshDirPath:string;
|
||||
let pubKey:string;
|
||||
let privKey:string;
|
||||
return plugins.nodegit.Cred.sshKeyMemoryNew(userName, pubKey, privKey, "");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,8 +1,10 @@
|
||||
import "typings-global"
|
||||
|
||||
export let path = require("path");
|
||||
export let beautylog = require("beautylog");
|
||||
export import path = require("path");
|
||||
export import beautylog = require("beautylog");
|
||||
export let nodegit = require("nodegit");
|
||||
export let Q = require("q");
|
||||
export import smartfile = require("smartfile");
|
||||
export import smartstring = require("smartstring");
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user