File tree 3 files changed +6
-1
lines changed
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
442
442
migrate.permission_denied = You are not allowed to import local repositories.
443
443
migrate.invalid_local_path = Invalid local path, it does not exist or not a directory.
444
444
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.
445
446
446
447
mirror_from = mirror of
447
448
forked_from = forked from
Original file line number Diff line number Diff line change @@ -153,6 +153,7 @@ func Migrate(ctx *context.Context) {
153
153
ctx .Data ["private" ] = ctx .User .LastRepoVisibility
154
154
ctx .Data ["IsForcedPrivate" ] = setting .Repository .ForcePrivate
155
155
ctx .Data ["mirror" ] = ctx .Query ("mirror" ) == "1"
156
+ ctx .Data ["LFSActive" ] = setting .LFS .StartServer
156
157
157
158
ctxUser := checkContextUser (ctx , ctx .QueryInt64 ("org" ))
158
159
if ctx .Written () {
Original file line number Diff line number Diff line change 12
12
<div class="inline required field {{if .Err_CloneAddr}}error{{end}}">
13
13
<label for="clone_addr">{{.i18n.Tr "repo.migrate.clone_address"}}</label>
14
14
<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>
16
19
</div>
17
20
<div class="ui accordion optional field">
18
21
<div class="title {{if .Err_Auth}}text red active{{end}}">
You can’t perform that action at this time.
0 commit comments