aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2016-12-22 22:57:48 +0800
committerGitHub <noreply@github.com>2016-12-22 22:57:48 +0800
commitc21e2c4151b5bc13e54de902f59e7b4c46b47540 (patch)
treed757109c1d5a52bf7d95bc80601ee69ebeeb19f4
parent0e1392501daacc8372034b220593d028e2efcb52 (diff)
downloadgitea-c21e2c4151b5bc13e54de902f59e7b4c46b47540.tar.gz
gitea-c21e2c4151b5bc13e54de902f59e7b4c46b47540.zip
fix tag webhook 404 error (#420)
-rw-r--r--models/action.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/action.go b/models/action.go
index e14dc062fe..f84d42d0cb 100644
--- a/models/action.go
+++ b/models/action.go
@@ -580,7 +580,7 @@ func CommitRepoAction(opts CommitRepoActionOptions) error {
if err != nil {
log.Error(4, "OpenRepository[%s]: %v", repo.RepoPath(), err)
}
- shaSum, err = gitRepo.GetTagCommitID(opts.RefFullName)
+ shaSum, err = gitRepo.GetTagCommitID(refName)
if err != nil {
log.Error(4, "GetTagCommitID[%s]: %v", opts.RefFullName, err)
}