0
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-11-29 14:56:20 +01:00
This commit is contained in:
Unknown 2014-03-20 09:49:06 -04:00
parent b4a55434a4
commit 4a6c56d2fd
2 changed files with 5 additions and 1 deletions

View File

@ -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

View 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