diff --git a/gogs.go b/gogs.go index 82edbdc73..1882895f0 100644 --- a/gogs.go +++ b/gogs.go @@ -16,7 +16,7 @@ import ( "github.com/gogits/gogs/modules/setting" ) -const APP_VER = "0.10.1.0228" +const APP_VER = "0.10.2.0228" func init() { setting.AppVer = APP_VER diff --git a/models/webhook.go b/models/webhook.go index 0f475df5e..54179ef3b 100644 --- a/models/webhook.go +++ b/models/webhook.go @@ -305,7 +305,7 @@ func GetWebhooksByOrgID(orgID int64) (ws []*Webhook, err error) { // getActiveWebhooksByOrgID returns all active webhooks for an organization. func getActiveWebhooksByOrgID(e Engine, orgID int64) ([]*Webhook, error) { - ws := make([]*Webhook, 3) + ws := make([]*Webhook, 0, 3) return ws, e.Where("org_id=?", orgID).And("is_active=?", true).Find(&ws) } diff --git a/templates/.VERSION b/templates/.VERSION index e1c130c69..3762da787 100644 --- a/templates/.VERSION +++ b/templates/.VERSION @@ -1 +1 @@ -0.10.1.0228 \ No newline at end of file +0.10.2.0228 \ No newline at end of file