aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2017-02-28 10:28:48 -0500
committerUnknwon <u@gogs.io>2017-02-28 10:28:48 -0500
commitd43f5f17fd1e07230ade010116acabdc2dde27b6 (patch)
tree00beb8a27826b924a9efd247e04bf5a8d3e52fd9
parent193cc3ba9a831e677ee45d8c1e5c4fd6f29236a3 (diff)
webhook: fix push panic to organizational repository (#4206)
-rw-r--r--gogs.go2
-rw-r--r--models/webhook.go2
-rw-r--r--templates/.VERSION2
3 files changed, 3 insertions, 3 deletions
diff --git a/gogs.go b/gogs.go
index 82edbdc7..1882895f 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 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