···2222 return repo.GetRefCommitID(BranchPrefix + name)
2323}
24242525-// GetTagCommitID returns last commit ID string of given tag.
2525+// GetTagCommitID returns last commit ID string of given tag. If the tag is an
2626+// annoted tag it will return the objectID of that tag instead of the commitID
2727+// the tag is pointing to. `GetTagCommit` handles annoted tags correctly.
2628func (repo *Repository) GetTagCommitID(name string) (string, error) {
2729 return repo.GetRefCommitID(TagPrefix + name)
2830}