diff options
author | Unknown <joe2010xtmf@163.com> | 2014-06-23 16:22:34 -0400 |
---|---|---|
committer | Unknown <joe2010xtmf@163.com> | 2014-06-23 16:22:34 -0400 |
commit | 47d29a1ee027734dcbbd1a6ed4d8ff3dde1a789b (patch) | |
tree | a1b8b4902b9c9c9c0dda2bfe28eb51f7ed6aa50a /routers/repo/http.go | |
parent | fb53cc4fa82bbbbba4b8b0281d5f5657b1a6fafc (diff) | |
download | gitea-47d29a1ee027734dcbbd1a6ed4d8ff3dde1a789b.tar.gz gitea-47d29a1ee027734dcbbd1a6ed4d8ff3dde1a789b.zip |
Mirror fix on #248
Diffstat (limited to 'routers/repo/http.go')
-rw-r--r-- | routers/repo/http.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/routers/repo/http.go b/routers/repo/http.go index 5915e8761e..d2bff29973 100644 --- a/routers/repo/http.go +++ b/routers/repo/http.go @@ -141,7 +141,10 @@ func Http(ctx *middleware.Context, params martini.Params) { newCommitId := fields[1] refName := fields[2] - models.Update(refName, oldCommitId, newCommitId, authUsername, username, reponame, authUser.Id) + if err = models.Update(refName, oldCommitId, newCommitId, authUsername, username, reponame, authUser.Id); err != nil { + log.GitLogger.Error(err.Error()) + return + } } } } |