| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -2763,6 +2763,14 @@ | |||
| 2763 | 2763 | "isErrorCode": true | |
| 2764 | 2764 | }, | |
| 2765 | 2765 | "isAsync": true | |
| 2766 | + }, | ||
| 2767 | + "git_tag_peel": { | ||
| 2768 | + "args": { | ||
| 2769 | + "tag_target_out": { | ||
| 2770 | + "isReturn": true | ||
| 2771 | + } | ||
| 2772 | + }, | ||
| 2773 | + "isAsync": true | ||
| 2766 | 2774 | } | |
| 2767 | 2775 | } | |
| 2768 | 2776 | }, | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -220,4 +220,14 @@ describe("Tag", function() { | |||
| 220 | 220 | assert(object.type(), Obj.TYPE.TAG); | |
| 221 | 221 | }); | |
| 222 | 222 | }); | |
| 223 | + | ||
| 224 | + it("can peel a tag", function() { | ||
| 225 | + return this.repository.getTagByName(tagName) | ||
| 226 | + .then(function(tag) { | ||
| 227 | + return tag.peel(); | ||
| 228 | + }) | ||
| 229 | + .then(function(object) { | ||
| 230 | + assert.equal(object.isCommit(), true); | ||
| 231 | + }); | ||
| 232 | + }); | ||
| 223 | 233 | }); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments