File tree Expand file tree Collapse file tree 3 files changed +6
-1
lines changed Expand file tree Collapse file tree 3 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -442,6 +442,7 @@ migrate.clone_local_path = or local server path
442442migrate.permission_denied = You are not allowed to import local repositories.
443443migrate.invalid_local_path = Invalid local path, it does not exist or not a directory.
444444migrate.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
446447mirror_from = mirror of
447448forked_from = forked from
Original file line number Diff line number Diff 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 () {
Original file line number Diff line number Diff line change 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}}">
You can’t perform that action at this time.
0 commit comments