diff options
author | Lukas <LukBukkit@users.noreply.github.com> | 2019-10-16 21:28:41 +0200 |
---|---|---|
committer | Lauris BH <lauris@nix.lv> | 2019-10-16 22:28:41 +0300 |
commit | de4f10be86b207b087ba9781c628fe3d7b059f7b (patch) | |
tree | 6c522c45ad076b1dc167d65d2c2dc1d91cbda8d9 /modules/auth | |
parent | d4cd4ed4422be222088dd8535a228b906f43fdc2 (diff) | |
download | gitea-de4f10be86b207b087ba9781c628fe3d7b059f7b.tar.gz gitea-de4f10be86b207b087ba9781c628fe3d7b059f7b.zip |
Allow committing / adding empty files using the web ui (#8420) (#8532)
* Allow committing / adding empty files from the web ui (#8420)
Signed-off-by: LukBukkit <luk.bukkit@gmail.com>
* Add a modal to confirm the commit of an empty file
Signed-off-by: LukBukkit <luk.bukkit@gmail.com>
Diffstat (limited to 'modules/auth')
-rw-r--r-- | modules/auth/repo_form.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/auth/repo_form.go b/modules/auth/repo_form.go index 8d10fc1570..5a8ac5934f 100644 --- a/modules/auth/repo_form.go +++ b/modules/auth/repo_form.go @@ -557,7 +557,7 @@ func (f *NewWikiForm) Validate(ctx *macaron.Context, errs binding.Errors) bindin // EditRepoFileForm form for changing repository file type EditRepoFileForm struct { TreePath string `binding:"Required;MaxSize(500)"` - Content string `binding:"Required"` + Content string CommitSummary string `binding:"MaxSize(100)"` CommitMessage string CommitChoice string `binding:"Required;MaxSize(50)"` |