Skip to content

Commit d6a2fed

Browse files
John Haleytbranyen
authored andcommitted
Removed a new segfault woot
1 parent de04c08 commit d6a2fed

4 files changed

Lines changed: 12 additions & 10 deletions

File tree

generate/descriptor.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,10 @@
282282
"isStruct": true
283283
},
284284

285+
"cred_acquire_cb": {
286+
287+
},
288+
285289
"cred_helpers": {
286290
},
287291

@@ -694,7 +698,7 @@
694698
"cType": "int"
695699
}, {
696700
"name": "credentials",
697-
"cType": "function"
701+
"cType": "git_cred_acquire_cb"
698702
}]
699703
},
700704

generate/types.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
{
2+
"git_cred_acquire_cb": {
3+
"cpp": "Function",
4+
"js": "Function"
5+
},
26
"git_attr_get": {
37
"cpp": "Get",
48
"js": "get"
@@ -9224,4 +9228,4 @@
92249228
"cpp": "CredSshKeyFromAgent",
92259229
"js": "credSshKeyFromAgent"
92269230
}
9227-
}
9231+
}

lib/clone.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,8 @@ var clone = Clone.clone;
1212
* @param options
1313
*/
1414
Clone.clone = function(url, local_path, options) {
15-
//var opts = normalizeOptions(options, NodeGit.CloneOptions);
16-
//opts = normalizeOptions(options.remote_callbacks, NodeGit.RemoteCallbacks);
17-
18-
var callbacks = new NodeGit.RemoteCallbacks();
19-
console.log(callbacks);
20-
//return clone.call(this, url, local_path, opts);
15+
options = normalizeOptions(options, NodeGit.CloneOptions);
16+
return clone.call(this, url, local_path, options);
2117
};
2218

2319
module.exports = Clone;

lib/nodegit.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ var promisify = require("promisify-node");
22
var descriptors = require("../generate/idefs.json");
33
var rawApi;
44

5-
//require("segfault_handler").registerHandler();
6-
75
// Attempt to load the production release first, if it fails fall back to the
86
// debug release.
97
try {

0 commit comments

Comments
 (0)