From f1aa4c05242e95fdc2b42a0b59a7b5a410990170 Mon Sep 17 00:00:00 2001 From: Nathan Zadoks Date: Fri, 30 Oct 2015 02:44:45 +0100 Subject: [PATCH] Fix the JSON field names for MigrateRepoForm For some reason, the field names for Private and Mirror got swapped. --- modules/auth/repo_form.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/auth/repo_form.go b/modules/auth/repo_form.go index ac43ba5d96..191117bbdf 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)"` }