From: Unknown Date: Thu, 20 Mar 2014 13:49:06 +0000 (-0400) Subject: Bug fix X-Git-Tag: v0.9.99~2367^2~23^2~1 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=4a6c56d2fdca7f3f7cbc6d03a6809796c0b5a56e;p=gitea.git Bug fix --- diff --git a/gogs.go b/gogs.go index 385b74217b..d32e3908c9 100644 --- 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 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