aboutsummaryrefslogtreecommitdiffstats
path: root/models
diff options
context:
space:
mode:
author无闻 <joe2010xtmf@163.com>2014-07-24 08:21:28 -0400
committer无闻 <joe2010xtmf@163.com>2014-07-24 08:21:28 -0400
commit3db84c889365a559a6ea81ad4e7dd4a5f089d249 (patch)
tree30e2471ad6c64c8e12330dbaf5f3e0b08aad1198 /models
parenta76a948a029f46697a0e2327ea6ca86872a760d7 (diff)
parent70b0023b828b8dcd24914232741141e903532fff (diff)
downloadgitea-3db84c889365a559a6ea81ad4e7dd4a5f089d249.tar.gz
gitea-3db84c889365a559a6ea81ad4e7dd4a5f089d249.zip
Merge pull request #306 from nuss-justin/dev
Fix double decrement of issue counter
Diffstat (limited to 'models')
-rw-r--r--models/action.go12
1 files changed, 0 insertions, 12 deletions
diff --git a/models/action.go b/models/action.go
index 362b238f26..82d65de3fb 100644
--- a/models/action.go
+++ b/models/action.go
@@ -142,18 +142,6 @@ func updateIssuesCommit(userId, repoId int64, repoUserName, repoName string, com
return err
}
- issue.Repo, err = GetRepositoryById(issue.RepoId)
-
- if err != nil {
- return err
- }
-
- issue.Repo.NumClosedIssues++
-
- if err = UpdateRepository(issue.Repo); err != nil {
- return err
- }
-
if err = ChangeMilestoneIssueStats(issue); err != nil {
return err
}