index
:
gogs.git
Gogs is a painless self-hosted Git service
log msg
author
committer
range
buildscript
main
mygogs
about
summary
refs
log
tree
commit
diff
path:
root
/
models
/
action.go
diff options
context:
1
2
3
4
5
6
7
8
9
10
15
20
25
30
35
40
space:
include
ignore
mode:
unified
ssdiff
stat only
author
无闻 <joe2010xtmf@163.com>
2014-07-24 08:21:28 -0400
committer
无闻 <joe2010xtmf@163.com>
2014-07-24 08:21:28 -0400
commit
3db84c889365a559a6ea81ad4e7dd4a5f089d249
(
patch
)
tree
30e2471ad6c64c8e12330dbaf5f3e0b08aad1198
/
models/action.go
parent
a76a948a029f46697a0e2327ea6ca86872a760d7
(
diff
)
parent
70b0023b828b8dcd24914232741141e903532fff
(
diff
)
Merge pull request #306 from nuss-justin/dev
Fix double decrement of issue counter
Diffstat
(limited to 'models/action.go')
-rw-r--r--
models/action.go
12
1 files changed, 0 insertions, 12 deletions
diff --git a/models/action.go b/models/action.go
index 362b238f..82d65de3 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
}