summaryrefslogtreecommitdiffstats
path: root/routers
diff options
context:
space:
mode:
authorAndrew <boyarshinand@gmail.com>2016-08-12 00:18:51 +0700
committer无闻 <u@gogs.io>2016-08-11 10:18:51 -0700
commit0885784f136b9b68653ec33fa733e962f3507f7e (patch)
tree485512cf16333b9ae28cba83b8f3091392f94bc3 /routers
parent3380c946e12e53368f28a2b7285c7bad0c1746dc (diff)
downloadgitea-0885784f136b9b68653ec33fa733e962f3507f7e.tar.gz
gitea-0885784f136b9b68653ec33fa733e962f3507f7e.zip
Wiki mirroring implementation (#3233)
* Implement wiki mirroring, add Update mirrors operation to admin dashboard * bindata.go update after merge * Implement checking Git repo endpoint existence, support for BB included * Remove admin dashboard operation Fix bindata.go * Apply gofmt to repo model file * Try to remove bindata from PR * Revert accepted wiki names change in favor of better system * Remove unused imports
Diffstat (limited to 'routers')
-rw-r--r--routers/repo/setting.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/repo/setting.go b/routers/repo/setting.go
index 08f06dcb30..33ed5b8aae 100644
--- a/routers/repo/setting.go
+++ b/routers/repo/setting.go
@@ -174,7 +174,7 @@ func SettingsPost(ctx *context.Context, form auth.RepoSettingForm) {
}
repo.IsMirror = false
- if _, err := models.CleanUpMigrateInfo(repo, models.RepoPath(ctx.Repo.Owner.Name, repo.Name)); err != nil {
+ if _, err := models.CleanUpMigrateInfo(repo); err != nil {
ctx.Handle(500, "CleanUpMigrateInfo", err)
return
} else if err = models.DeleteMirrorByRepoID(ctx.Repo.Repository.ID); err != nil {