index
:
gogs.git
Gogs is a painless self-hosted Git service
log msg
author
committer
range
buildscript
main
mygogs
about
summary
refs
log
tree
commit
diff
path:
root
/
modules
diff options
context:
1
2
3
4
5
6
7
8
9
10
15
20
25
30
35
40
space:
include
ignore
mode:
unified
ssdiff
stat only
author
无闻 <u@gogs.io>
2015-10-31 11:14:38 -0400
committer
无闻 <u@gogs.io>
2015-10-31 11:14:38 -0400
commit
91c9069c4d674615a306cc7d5317aae03eecb002
(
patch
)
tree
b2a2ca3b59480ad5ac6c12944354b8a03fe680fd
/
modules
parent
102b675f96eb4340c35376ddd33385f4f20ef091
(
diff
)
parent
f1aa4c05242e95fdc2b42a0b59a7b5a410990170
(
diff
)
Merge pull request #1862 from nathan7/fix-private
Fix the JSON field names for MigrateRepoForm
Diffstat
(limited to 'modules')
-rw-r--r--
modules/auth/repo_form.go
4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/auth/repo_form.go b/modules/auth/repo_form.go
index ac43ba5d..191117bb 100644
--- a/
modules/auth/repo_form.go
+++ b/
modules/auth/repo_form.go
@@ -37,8 +37,8 @@ type MigrateRepoForm struct {
AuthPassword string `json:"auth_password"`
Uid int64 `json:"uid" binding:"Required"`
RepoName string `json:"repo_name" binding:"Required;AlphaDashDot;MaxSize(100)"`
- Private bool `json:"mirror"`
- Mirror bool `json:"private"`
+ Mirror bool `json:"mirror"`
+ Private bool `json:"private"`
Description string `json:"description" binding:"MaxSize(255)"`
}