diff --git a/generate/input/descriptor.json b/generate/input/descriptor.json index 13fc597c4..090153968 100644 --- a/generate/input/descriptor.json +++ b/generate/input/descriptor.json @@ -2000,7 +2000,19 @@ } }, "git_submodule_location": { - "ignore": true + "isAsync": true, + "args": { + "location_status": { + "shouldAlloc": true, + "isReturn": true + }, + "submodule": { + "isSelf": true + } + }, + "return": { + "isErrorCode": true + } }, "git_submodule_open": { "isAsync": true, diff --git a/test/tests/submodule.js b/test/tests/submodule.js index b2fd923cc..002b4ef12 100644 --- a/test/tests/submodule.js +++ b/test/tests/submodule.js @@ -53,6 +53,19 @@ describe("Submodule", function() { }); }); + it("can get submodule location", function() { + var repo = this.workdirRepository; + var submoduleName = "vendor/libgit2"; + + return Submodule.lookup(repo, submoduleName) + .then(function(submodule) { + return submodule.location(); + }) + .then(function(status) { + assert.equal(Submodule.STATUS.IN_CONFIG, status); + }); + }); + it("can set submodule ignore", function() { var repo = this.workdirRepository; var submoduleName = "vendor/libgit2";