Github's /git/refs/tag/<TAG> endpoint seems to be limited to annotated tags. I encountered a situation where I needed to access a lightweight tag that, itself, pointed to an annotated release tag. When fetching this ref, the object.url returned by Github was of the form /git/tags/<TAG> but this form was not supported by Octokat. These changes allow the fetching of lightweight tags through repo.git.tags.
This SO answer was pivotal in helping me understand this case and identify the solution.
Github's
/git/refs/tag/<TAG>
endpoint seems to be limited to annotated tags. I encountered a situation where I needed to access a lightweight tag that, itself, pointed to an annotated release tag. When fetching this ref, theobject.url
returned by Github was of the form/git/tags/<TAG>
but this form was not supported by Octokat. These changes allow the fetching of lightweight tags throughrepo.git.tags
.This SO answer was pivotal in helping me understand this case and identify the solution.