This commit is contained in:
Unknwon committed 2014-09-30 04:39:53 -04:00
1 parent 198567eccb
commit 2a031c1365
9 files changed
+12 -11

No files matched your search

+2 -2
View File
@@ -40,11 +40,11 @@ func (repo *Repository) GetCommitIdOfTag(tagName string) (string, error) {
}
func (repo *Repository) GetCommitOfTag(tagName string) (*Commit, error) {
commitId, err := repo.GetCommitIdOfTag(tagName)
tag, err := repo.GetTag(tagName)
if err != nil {
return nil, err
}
return repo.GetCommit(commitId)
return tag.Commit()
}
// Parse commit information from the (uncompressed) raw