aboutsummaryrefslogtreecommitdiffstats
path: root/modules/auth/repo_form.go
diff options
context:
space:
mode:
authorUnknwon <joe2010xtmf@163.com>2014-12-12 20:30:32 -0500
committerUnknwon <joe2010xtmf@163.com>2014-12-12 20:30:32 -0500
commitac4a10456ea4515091c3c90a83a82c1e59cdf428 (patch)
treedb68f1f7a8f290322bd4da9892487cca5a1a5843 /modules/auth/repo_form.go
parent2f3a7e53cb58e922055baf3cf14138100a1f05ac (diff)
downloadgitea-ac4a10456ea4515091c3c90a83a82c1e59cdf428.tar.gz
gitea-ac4a10456ea4515091c3c90a83a82c1e59cdf428.zip
api: able to create repo and fix #726
- POST /user/repos - POST /org/:org/repos
Diffstat (limited to 'modules/auth/repo_form.go')
-rw-r--r--modules/auth/repo_form.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/auth/repo_form.go b/modules/auth/repo_form.go
index 41c0217a93..36e62f04fb 100644
--- a/modules/auth/repo_form.go
+++ b/modules/auth/repo_form.go
@@ -21,9 +21,9 @@ type CreateRepoForm struct {
RepoName string `form:"repo_name" binding:"Required;AlphaDashDot;MaxSize(100)"`
Private bool `form:"private"`
Description string `form:"desc" binding:"MaxSize(255)"`
+ AutoInit bool `form:"auto_init"`
Gitignore string `form:"gitignore"`
License string `form:"license"`
- InitReadme bool `form:"init_readme"`
}
func (f *CreateRepoForm) Validate(ctx *macaron.Context, errs binding.Errors) binding.Errors {