Browse Source

Add notice that LFS mirroring is not supported (#1251)

* Add notice that LFS mirroring is not supported

* Drop German translation
for-closed-social
Fabian Zaremba 7 years ago
committed by Lunny Xiao
parent
commit
f1d2f16b54
3 changed files with 6 additions and 1 deletions
  1. +1
    -0
      options/locale/locale_en-US.ini
  2. +1
    -0
      routers/repo/repo.go
  3. +4
    -1
      templates/repo/migrate.tmpl

+ 1
- 0
options/locale/locale_en-US.ini View File

@ -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

+ 1
- 0
routers/repo/repo.go View File

@ -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() {

+ 4
- 1
templates/repo/migrate.tmpl View File

@ -12,7 +12,10 @@
<div class="inline required field {{if .Err_CloneAddr}}error{{end}}">
<label for="clone_addr">{{.i18n.Tr "repo.migrate.clone_address"}}</label>
<input id="clone_addr" name="clone_addr" value="{{.clone_addr}}" autofocus required>
<span class="help">{{.i18n.Tr "repo.migrate.clone_address_desc"}}{{if .ContextUser.CanImportLocal}} {{.i18n.Tr "repo.migrate.clone_local_path"}}{{end}}</span>
<span class="help">
{{.i18n.Tr "repo.migrate.clone_address_desc"}}{{if .ContextUser.CanImportLocal}} {{.i18n.Tr "repo.migrate.clone_local_path"}}{{end}}
{{if .LFSActive}}<br/>{{.i18n.Tr "repo.migrate.lfs_mirror_unsupported"}}{{end}}
</span>
</div>
<div class="ui accordion optional field">
<div class="title {{if .Err_Auth}}text red active{{end}}">

Loading…
Cancel
Save