|
|
@ -8,9 +8,9 @@ import ( |
|
|
|
"encoding/json" |
|
|
|
"encoding/json" |
|
|
|
"errors" |
|
|
|
"errors" |
|
|
|
"fmt" |
|
|
|
"fmt" |
|
|
|
|
|
|
|
"path" |
|
|
|
"strings" |
|
|
|
"strings" |
|
|
|
"time" |
|
|
|
"time" |
|
|
|
"path" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
"github.com/Unknwon/com" |
|
|
|
"github.com/Unknwon/com" |
|
|
|
|
|
|
|
|
|
|
@ -84,7 +84,6 @@ func SettingsPost(ctx *middleware.Context, form auth.RepoSettingForm) { |
|
|
|
ctx.Repo.Repository.Description = form.Description |
|
|
|
ctx.Repo.Repository.Description = form.Description |
|
|
|
ctx.Repo.Repository.Website = form.Website |
|
|
|
ctx.Repo.Repository.Website = form.Website |
|
|
|
ctx.Repo.Repository.IsPrivate = form.Private |
|
|
|
ctx.Repo.Repository.IsPrivate = form.Private |
|
|
|
ctx.Repo.Repository.IsGoget = form.GoGet |
|
|
|
|
|
|
|
if err := models.UpdateRepository(ctx.Repo.Repository); err != nil { |
|
|
|
if err := models.UpdateRepository(ctx.Repo.Repository); err != nil { |
|
|
|
ctx.Handle(404, "UpdateRepository", err) |
|
|
|
ctx.Handle(404, "UpdateRepository", err) |
|
|
|
return |
|
|
|
return |
|
|
|