Skip to content

Commit f1d2f16

Browse files
fabian-zlunny
authored andcommitted
Add notice that LFS mirroring is not supported (#1251)
* Add notice that LFS mirroring is not supported * Drop German translation
1 parent 447c9b4 commit f1d2f16

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

options/locale/locale_en-US.ini

+1
Original file line numberDiff line numberDiff line change
@@ -442,6 +442,7 @@ migrate.clone_local_path = or local server path
442442
migrate.permission_denied = You are not allowed to import local repositories.
443443
migrate.invalid_local_path = Invalid local path, it does not exist or not a directory.
444444
migrate.failed = Migration failed: %v
445+
migrate.lfs_mirror_unsupported = Mirroring LFS objects is not supported - use 'git lfs fetch --all' and 'git lfs push --all' instead.
445446
446447
mirror_from = mirror of
447448
forked_from = forked from

routers/repo/repo.go

+1
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,7 @@ func Migrate(ctx *context.Context) {
153153
ctx.Data["private"] = ctx.User.LastRepoVisibility
154154
ctx.Data["IsForcedPrivate"] = setting.Repository.ForcePrivate
155155
ctx.Data["mirror"] = ctx.Query("mirror") == "1"
156+
ctx.Data["LFSActive"] = setting.LFS.StartServer
156157

157158
ctxUser := checkContextUser(ctx, ctx.QueryInt64("org"))
158159
if ctx.Written() {

templates/repo/migrate.tmpl

+4-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@
1212
<div class="inline required field {{if .Err_CloneAddr}}error{{end}}">
1313
<label for="clone_addr">{{.i18n.Tr "repo.migrate.clone_address"}}</label>
1414
<input id="clone_addr" name="clone_addr" value="{{.clone_addr}}" autofocus required>
15-
<span class="help">{{.i18n.Tr "repo.migrate.clone_address_desc"}}{{if .ContextUser.CanImportLocal}} {{.i18n.Tr "repo.migrate.clone_local_path"}}{{end}}</span>
15+
<span class="help">
16+
{{.i18n.Tr "repo.migrate.clone_address_desc"}}{{if .ContextUser.CanImportLocal}} {{.i18n.Tr "repo.migrate.clone_local_path"}}{{end}}
17+
{{if .LFSActive}}<br/>{{.i18n.Tr "repo.migrate.lfs_mirror_unsupported"}}{{end}}
18+
</span>
1619
</div>
1720
<div class="ui accordion optional field">
1821
<div class="title {{if .Err_Auth}}text red active{{end}}">

0 commit comments

Comments
 (0)