Skip to content
Next Next commit
Attempt to fix Windows file locking bug
  • Loading branch information
tbranyen authored and John Haley committed Feb 26, 2015
commit 749826c81799fc5b00a0ed4a18d98e67f27f1eaa
3 changes: 0 additions & 3 deletions generate/input/descriptor.json
Original file line number Diff line number Diff line change
Expand Up @@ -1431,9 +1431,6 @@
"git_repository_fetchhead_foreach": {
"ignore": true
},
"git_repository_free": {
"ignore": true
},
"git_repository_hashfile": {
"ignore": true
},
Expand Down
4 changes: 2 additions & 2 deletions generate/scripts/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -288,8 +288,8 @@ var Helpers = {
// available
if (key == typeDef.cType + "_free") {
typeDef.freeFunctionName = key;
fnDef.ignore = true;
return;
//fnDef.ignore = true;
//return;
}

fnDef.cppFunctionName = Helpers.cTypeToCppName(key, "git_" + typeDef.typeName);
Expand Down
15 changes: 14 additions & 1 deletion test/tests/clone.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ describe("Clone", function() {
fse.remove(ssh),
fse.remove(git),
fse.remove(file)
]).catch(function unhandledFunction() {});
]).catch(function unhandledFunction(ex) {
console.log(ex.message);
});
});

it.skip("can clone with http", function() {
Expand All @@ -43,6 +45,7 @@ describe("Clone", function() {

return Clone.clone(url, http, opts).then(function(repo) {
assert.ok(repo instanceof Repository);
repo.free();
});
});

Expand All @@ -58,6 +61,8 @@ describe("Clone", function() {

return Clone.clone(url, https, opts).then(function(repo) {
assert.ok(repo instanceof Repository);
repo.stateCleanup();
repo.free();
});
});

Expand All @@ -76,6 +81,8 @@ describe("Clone", function() {

return Clone.clone(url, ssh, opts).then(function(repo) {
assert.ok(repo instanceof Repository);
repo.stateCleanup();
repo.free();
});
});

Expand All @@ -98,6 +105,8 @@ describe("Clone", function() {

return Clone.clone(url, ssh, opts).then(function(repo) {
assert.ok(repo instanceof Repository);
repo.stateCleanup();
repo.free();
});
});

Expand All @@ -113,6 +122,8 @@ describe("Clone", function() {

return Clone.clone(url, git, opts).then(function(repo) {
assert.ok(repo instanceof Repository);
repo.stateCleanup();
repo.free();
});
});

Expand All @@ -122,6 +133,8 @@ describe("Clone", function() {

return Clone.clone(url, file).then(function(repo) {
assert.ok(repo instanceof Repository);
repo.stateCleanup();
repo.free();
});
});

Expand Down