aboutsummaryrefslogtreecommitdiff
path: root/modules/git/repo_commit.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/git/repo_commit.go')
-rw-r--r--modules/git/repo_commit.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/git/repo_commit.go b/modules/git/repo_commit.go
index cd0181c4..7c47b53d 100644
--- a/modules/git/repo_commit.go
+++ b/modules/git/repo_commit.go
@@ -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