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/middleware | |
parent | 198567eccbd6425235f5c755b5862cbe90b435c2 (diff) | |
download | gitea-2a031c13658458df9f8f56ce295a8ba72bf35dff.tar.gz gitea-2a031c13658458df9f8f56ce295a8ba72bf35dff.zip |
Fix #515
Diffstat (limited to 'modules/middleware')
-rw-r--r-- | modules/middleware/repo.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/modules/middleware/repo.go b/modules/middleware/repo.go index c0290b2e8f..c6250f6d59 100644 --- a/modules/middleware/repo.go +++ b/modules/middleware/repo.go @@ -208,10 +208,9 @@ func RepoAssignment(redirect bool, args ...bool) macaron.Handler { } else if gitRepo.IsTagExist(refName) { ctx.Repo.IsTag = true ctx.Repo.BranchName = refName - - ctx.Repo.Commit, err = gitRepo.GetCommitOfTag(refName) + ctx.Repo.Commit, err = ctx.Repo.GitRepo.GetCommitOfTag(refName) if err != nil { - ctx.Handle(500, "RepoAssignment invalid tag", err) + ctx.Handle(500, "Fail to get tag commit", err) return } ctx.Repo.CommitId = ctx.Repo.Commit.Id.String() |