diff options
author | Unknwon <joe2010xtmf@163.com> | 2014-09-30 04:39:53 -0400 |
---|---|---|
committer | Unknwon <joe2010xtmf@163.com> | 2014-09-30 04:39:53 -0400 |
commit | 2a031c13658458df9f8f56ce295a8ba72bf35dff (patch) | |
tree | 5af1a495b55eddef9d8fe8e21d2a0bccc835ec1d /modules/git/repo_commit.go | |
parent | 198567eccbd6425235f5c755b5862cbe90b435c2 (diff) | |
download | gitea-2a031c13658458df9f8f56ce295a8ba72bf35dff.tar.gz gitea-2a031c13658458df9f8f56ce295a8ba72bf35dff.zip |
Fix #515
Diffstat (limited to 'modules/git/repo_commit.go')
-rw-r--r-- | modules/git/repo_commit.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/git/repo_commit.go b/modules/git/repo_commit.go index cd0181c481..7c47b53dc4 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 |