diff --git a/options/locale/locale_en-US.ini b/options/locale/locale_en-US.ini index ad75f28c9..2ac92a4f8 100644 --- a/options/locale/locale_en-US.ini +++ b/options/locale/locale_en-US.ini @@ -442,6 +442,7 @@ migrate.clone_local_path = or local server path migrate.permission_denied = You are not allowed to import local repositories. migrate.invalid_local_path = Invalid local path, it does not exist or not a directory. migrate.failed = Migration failed: %v +migrate.lfs_mirror_unsupported = Mirroring LFS objects is not supported - use 'git lfs fetch --all' and 'git lfs push --all' instead. mirror_from = mirror of forked_from = forked from diff --git a/routers/repo/repo.go b/routers/repo/repo.go index fa111d5e4..9b411648c 100644 --- a/routers/repo/repo.go +++ b/routers/repo/repo.go @@ -153,6 +153,7 @@ func Migrate(ctx *context.Context) { ctx.Data["private"] = ctx.User.LastRepoVisibility ctx.Data["IsForcedPrivate"] = setting.Repository.ForcePrivate ctx.Data["mirror"] = ctx.Query("mirror") == "1" + ctx.Data["LFSActive"] = setting.LFS.StartServer ctxUser := checkContextUser(ctx, ctx.QueryInt64("org")) if ctx.Written() { diff --git a/templates/repo/migrate.tmpl b/templates/repo/migrate.tmpl index 17d563032..e05768e41 100644 --- a/templates/repo/migrate.tmpl +++ b/templates/repo/migrate.tmpl @@ -12,7 +12,10 @@