aboutsummaryrefslogtreecommitdiff
path: root/modules/form/repo.go
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2017-02-23 11:39:45 -0500
committerUnknwon <u@gogs.io>2017-02-27 22:46:32 -0500
commit429345b9df894465ef98d20358b1757c92b41c80 (patch)
tree56a4499f7e8dd7872696ba919a7f26a6fa870a45 /modules/form/repo.go
parenteaab01fa4993d2c9c9141b7526747deb4f21ba2e (diff)
editor: fix cannot create branch with slashes (#3568)
Diffstat (limited to 'modules/form/repo.go')
-rw-r--r--modules/form/repo.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/form/repo.go b/modules/form/repo.go
index 0aadde96..0f3e83ce 100644
--- a/modules/form/repo.go
+++ b/modules/form/repo.go
@@ -323,7 +323,7 @@ type EditRepoFile struct {
CommitSummary string `binding:"MaxSize(100)`
CommitMessage string
CommitChoice string `binding:"Required;MaxSize(50)"`
- NewBranchName string `binding:"AlphaDashDot;MaxSize(100)"`
+ NewBranchName string `binding:"AlphaDashDotSlash;MaxSize(100)"`
LastCommit string
}