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
Nathan Zadoks <nathan@nathan7.eu>
2015-10-30 02:44:45 +0100
committer
Nathan Zadoks <nathan@nathan7.eu>
2015-10-30 02:44:45 +0100
commit
f1aa4c05242e95fdc2b42a0b59a7b5a410990170
(
patch
)
tree
edd731c601b6aa8647be3ffb6647d088d625fa92
/
modules
parent
31b375782b55972b4ac7719d9bd1f3fadf1874f9
(
diff
)
Fix the JSON field names for MigrateRepoForm
For some reason, the field names for Private and Mirror got swapped.
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)"`
}