diff --git a/generate/input/descriptor.json b/generate/input/descriptor.json index 25a01481d..a236a2c47 100644 --- a/generate/input/descriptor.json +++ b/generate/input/descriptor.json @@ -2696,6 +2696,14 @@ "isErrorCode": true }, "isAsync": true + }, + "git_tag_peel": { + "args": { + "tag_target_out": { + "isReturn": true + } + }, + "isAsync": true } } }, diff --git a/test/tests/tag.js b/test/tests/tag.js index 11b4f566f..55f1d71e4 100644 --- a/test/tests/tag.js +++ b/test/tests/tag.js @@ -220,4 +220,14 @@ describe("Tag", function() { assert(object.type(), Obj.TYPE.TAG); }); }); + + it("can peel a tag", function() { + return this.repository.getTagByName(tagName) + .then(function(tag) { + return tag.peel(); + }) + .then(function(object) { + assert.equal(object.isCommit(), true); + }); + }); });