summaryrefslogtreecommitdiffstats
path: root/models/repo.go
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-11-15 23:52:46 -0500
committerUnknwon <u@gogs.io>2015-11-15 23:52:46 -0500
commit18de67380c5049d6a4d10cc3f6f8fd80a9ac7a89 (patch)
treec5f142fdee161a61867756631ae63b439e7d902f /models/repo.go
parent1a901433e2a27e5bcd29216fdb57082be620b745 (diff)
downloadgitea-18de67380c5049d6a4d10cc3f6f8fd80a9ac7a89.tar.gz
gitea-18de67380c5049d6a4d10cc3f6f8fd80a9ac7a89.zip
fix #1958
Diffstat (limited to 'models/repo.go')
-rw-r--r--models/repo.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/repo.go b/models/repo.go
index bbd978ff4b..9b2c7bc6c0 100644
--- a/models/repo.go
+++ b/models/repo.go
@@ -1116,7 +1116,7 @@ func DeleteRepository(uid, repoID int64) error {
return err
} else if _, err = sess.Delete(&Milestone{RepoID: repoID}); err != nil {
return err
- } else if _, err = sess.Delete(&Release{RepoId: repoID}); err != nil {
+ } else if _, err = sess.Delete(&Release{RepoID: repoID}); err != nil {
return err
} else if _, err = sess.Delete(&Collaboration{RepoID: repoID}); err != nil {
return err