diff options
author | Richard Mahn <richmahn@users.noreply.github.com> | 2019-06-29 06:44:17 -0400 |
---|---|---|
committer | zeripath <art27@cantab.net> | 2019-06-29 11:44:17 +0100 |
commit | 567e117df894c6d0307f4a026cafabb3220ac3d6 (patch) | |
tree | f0b91d813cbea28a198c6a0c190a554c35842466 /routers/api/v1/convert | |
parent | 7bd0dc4975a442cd8b28616b9c530d313ed1b685 (diff) | |
download | gitea-567e117df894c6d0307f4a026cafabb3220ac3d6.tar.gz gitea-567e117df894c6d0307f4a026cafabb3220ac3d6.zip |
Fixes #7238 - Annotated tag commit ID incorrect (#7321)
* Fixes #7238 - Annotated tag commit ID incorrect
* Fixes #7238 - Annotated tag commit ID incorrect
Diffstat (limited to 'routers/api/v1/convert')
-rw-r--r-- | routers/api/v1/convert/convert.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/api/v1/convert/convert.go b/routers/api/v1/convert/convert.go index 80c0811aed..f1cb23de43 100644 --- a/routers/api/v1/convert/convert.go +++ b/routers/api/v1/convert/convert.go @@ -281,7 +281,7 @@ func ToCommitUser(sig *git.Signature) *api.CommitUser { // ToCommitMeta convert a git.Tag to an api.CommitMeta func ToCommitMeta(repo *models.Repository, tag *git.Tag) *api.CommitMeta { return &api.CommitMeta{ - SHA: tag.ID.String(), + SHA: tag.Object.String(), // TODO: Add the /commits API endpoint and use it here (https://developer.github.com/v3/repos/commits/#get-a-single-commit) URL: util.URLJoin(repo.APIURL(), "git/commits", tag.ID.String()), } |