Skip to content

Commit e7941de

Browse files
committed
amend for gogs
1 parent 36582e7 commit e7941de

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

options/locale/locale_en-US.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -771,6 +771,7 @@ migrate.clone_local_path = or a local server path
771771
migrate.permission_denied = You are not allowed to import local repositories.
772772
migrate.invalid_local_path = "The local path is invalid. It does not exist or is not a directory."
773773
migrate.failed = Migration failed: %v
774+
migrate.lfs_mirror_unsupported = Mirroring LFS objects is not supported - use 'git lfs fetch --all' and 'git lfs push --all' instead.
774775
migrate.migrate_items_options = Access Token is required to migrate additional items
775776
migrated_from = Migrated from <a href="%[1]s">%[2]s</a>
776777
migrated_from_fake = Migrated From %[1]s

templates/repo/migrate/gogs.tmpl

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
<input id="clone_addr" name="clone_addr" value="{{.clone_addr}}" autofocus required>
1616
<span class="help">
1717
{{.i18n.Tr "repo.migrate.clone_address_desc"}}{{if .ContextUser.CanImportLocal}} {{.i18n.Tr "repo.migrate.clone_local_path"}}{{end}}
18+
{{if .LFSActive}}<br />{{.i18n.Tr "repo.migrate.lfs_mirror_unsupported"}}{{end}}
1819
</span>
1920
</div>
2021

@@ -26,21 +27,15 @@
2627

2728
<div class="inline field">
2829
<label>{{.i18n.Tr "repo.migrate_options"}}</label>
29-
{{if .DisableMirrors}}
3030
<div class="ui checkbox">
31+
{{if .DisableMirrors}}
3132
<input id="mirror" name="mirror" type="checkbox" readonly>
3233
<label>{{.i18n.Tr "repo.migrate_options_mirror_disabled"}}</label>
33-
</div>
34-
{{else}}
35-
<div class="ui checkbox">
34+
{{else}}
3635
<input id="mirror" name="mirror" type="checkbox" {{if .mirror}} checked{{end}}>
3736
<label>{{.i18n.Tr "repo.migrate_options_mirror_helper" | Safe}}</label>
37+
{{end}}
3838
</div>
39-
<div class="ui checkbox">
40-
<input id="lfs" name="lfs" type="checkbox" {{if .lfs}} checked{{end}}>
41-
<label>{{.i18n.Tr "repo.migrate_options_mirror_lfs" | Safe}}</label>
42-
</div>
43-
{{end}}
4439
</div>
4540

4641
<span class="help">{{.i18n.Tr "repo.migrate.migrate_items_options"}}</span>

0 commit comments

Comments
 (0)