aboutsummaryrefslogtreecommitdiffstats
path: root/models/branches.go
diff options
context:
space:
mode:
authorLauris BH <lauris@nix.lv>2017-09-20 17:52:23 +0300
committerGitHub <noreply@github.com>2017-09-20 17:52:23 +0300
commit6718ea6ff152155e4affc2493cfd0c634e3e228d (patch)
tree72c1e6b38e3a96e731fa3f3655afe5b8c93ccf62 /models/branches.go
parent6f380a22a400911a241499ba9fbfca914bbae248 (diff)
downloadgitea-6718ea6ff152155e4affc2493cfd0c634e3e228d.tar.gz
gitea-6718ea6ff152155e4affc2493cfd0c634e3e228d.zip
Fix can_push value to false in protected_branch (#2560)
Diffstat (limited to 'models/branches.go')
-rw-r--r--models/branches.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/models/branches.go b/models/branches.go
index 1c3c0d17be..c26ee7d890 100644
--- a/models/branches.go
+++ b/models/branches.go
@@ -26,6 +26,7 @@ type ProtectedBranch struct {
ID int64 `xorm:"pk autoincr"`
RepoID int64 `xorm:"UNIQUE(s)"`
BranchName string `xorm:"UNIQUE(s)"`
+ CanPush bool `xorm:"NOT NULL DEFAULT false"`
EnableWhitelist bool
WhitelistUserIDs []int64 `xorm:"JSON TEXT"`
WhitelistTeamIDs []int64 `xorm:"JSON TEXT"`