]> source.dussan.org Git - gitea.git/commitdiff
Bug fix
authorUnknown <joe2010xtmf@163.com>
Thu, 20 Mar 2014 13:49:06 +0000 (09:49 -0400)
committerUnknown <joe2010xtmf@163.com>
Thu, 20 Mar 2014 13:49:06 +0000 (09:49 -0400)
gogs.go
models/repo.go

diff --git a/gogs.go b/gogs.go
index 385b74217b75b914a0be4b5c3f7b6aa3ff175f76..d32e3908c9fd8b456d22fd8c46424f1a45a4f27e 100644 (file)
--- a/gogs.go
+++ b/gogs.go
@@ -20,7 +20,7 @@ import (
 // Test that go1.1 tag above is included in builds. main.go refers to this definition.
 const go11tag = true
 
-const APP_VER = "0.1.1.0320.1"
+const APP_VER = "0.1.2.0320.1"
 
 func init() {
        base.AppVer = APP_VER
index 4b6dedaf9081759095ddb8062c7b9f762d9238d2..052341ff6e742e17553c1cf14af86a7570868ccc 100644 (file)
@@ -411,6 +411,10 @@ func DeleteRepository(userId, repoId int64, userName string) (err error) {
                session.Rollback()
                return err
        }
+       if _, err = session.Delete(&Watch{RepoId: repoId}); err != nil {
+               session.Rollback()
+               return err
+       }
        if err = session.Commit(); err != nil {
                session.Rollback()
                return err