diff options
author | Unknwon <u@gogs.io> | 2015-09-03 06:48:52 -0400 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-09-03 06:48:52 -0400 |
commit | 7ec991326d550957b278475057965e197f6e0324 (patch) | |
tree | 1e1972d0a1c92296d1c88ce855780bfc545bac83 /routers/api | |
parent | e5b105e513cb8bfe728c451525d1d9fd7d0979eb (diff) | |
download | gitea-7ec991326d550957b278475057965e197f6e0324.tar.gz gitea-7ec991326d550957b278475057965e197f6e0324.zip |
fix migrate api
Diffstat (limited to 'routers/api')
-rw-r--r-- | routers/api/v1/repo.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/api/v1/repo.go b/routers/api/v1/repo.go index 07d836e5b3..d38a0b0ff2 100644 --- a/routers/api/v1/repo.go +++ b/routers/api/v1/repo.go @@ -251,5 +251,5 @@ func MigrateRepo(ctx *middleware.Context, form auth.MigrateRepoForm) { } log.Trace("Repository migrated: %s/%s", ctxUser.Name, form.RepoName) - ctx.WriteHeader(200) + ctx.JSON(201, ToApiRepository(ctxUser, repo, api.Permission{true, true, true})) } |