diff options
author | Unknown <joe2010xtmf@163.com> | 2014-03-20 09:49:06 -0400 |
---|---|---|
committer | Unknown <joe2010xtmf@163.com> | 2014-03-20 09:49:06 -0400 |
commit | 4a6c56d2fdca7f3f7cbc6d03a6809796c0b5a56e (patch) | |
tree | 8ae8d2dcd88f997aece21b20d30ab09a8936253a | |
parent | b4a55434a46ffaf5c18df10d6bb39eb1e775822b (diff) | |
download | gitea-4a6c56d2fdca7f3f7cbc6d03a6809796c0b5a56e.tar.gz gitea-4a6c56d2fdca7f3f7cbc6d03a6809796c0b5a56e.zip |
Bug fix
-rw-r--r-- | gogs.go | 2 | ||||
-rw-r--r-- | models/repo.go | 4 |
2 files changed, 5 insertions, 1 deletions
@@ -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 diff --git a/models/repo.go b/models/repo.go index 4b6dedaf90..052341ff6e 100644 --- a/models/repo.go +++ b/models/repo.go @@ -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 |