File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,11 +10,13 @@ fse.remove(path).then(function() {
1010 "https://github.com/nodegit/nodegit.git" ,
1111 path ,
1212 {
13- remoteCallbacks : {
14- certificateCheck : function ( ) {
15- // github will fail cert check on some OSX machines
16- // this overrides that check
17- return 1 ;
13+ fetchOpts : {
14+ callbacks : {
15+ certificateCheck : function ( ) {
16+ // github will fail cert check on some OSX machines
17+ // this overrides that check
18+ return 1 ;
19+ }
1820 }
1921 }
2022 } )
Original file line number Diff line number Diff line change @@ -11,11 +11,13 @@ nodegit.Repository.open(path.resolve(__dirname, repoDir))
1111 repository = repo ;
1212
1313 return repository . fetchAll ( {
14- credentials : function ( url , userName ) {
15- return nodegit . Cred . sshKeyFromAgent ( userName ) ;
16- } ,
17- certificateCheck : function ( ) {
18- return 1 ;
14+ callbacks : {
15+ credentials : function ( url , userName ) {
16+ return nodegit . Cred . sshKeyFromAgent ( userName ) ;
17+ } ,
18+ certificateCheck : function ( ) {
19+ return 1 ;
20+ }
1921 }
2022 } ) ;
2123 } )
You can’t perform that action at this time.
0 commit comments