]> source.dussan.org Git - gitea.git/commitdiff
fix tag webhook 404 error (#420)
authorLunny Xiao <xiaolunwen@gmail.com>
Thu, 22 Dec 2016 14:57:48 +0000 (22:57 +0800)
committerGitHub <noreply@github.com>
Thu, 22 Dec 2016 14:57:48 +0000 (22:57 +0800)
models/action.go

index e14dc062fea05926572a2529e378388d362fb4cb..f84d42d0cbde112adc4d0237813818e601f978d7 100644 (file)
@@ -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)
                }