diff options
author | Unknwon <u@gogs.io> | 2017-02-28 10:28:48 -0500 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2017-02-28 10:28:48 -0500 |
commit | d43f5f17fd1e07230ade010116acabdc2dde27b6 (patch) | |
tree | 00beb8a27826b924a9efd247e04bf5a8d3e52fd9 | |
parent | 193cc3ba9a831e677ee45d8c1e5c4fd6f29236a3 (diff) |
webhook: fix push panic to organizational repository (#4206)
-rw-r--r-- | gogs.go | 2 | ||||
-rw-r--r-- | models/webhook.go | 2 | ||||
-rw-r--r-- | templates/.VERSION | 2 |
3 files changed, 3 insertions, 3 deletions
@@ -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 0f475df5..54179ef3 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 e1c130c6..3762da78 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 |