mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 00:20:25 +08:00 
			
		
		
		
	* Fixes #7238 - Annotated tag commit ID incorrect * Fixes #7238 - Annotated tag commit ID incorrect
This commit is contained in:
		@@ -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()),
 | 
			
		||||
	}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user