]> source.dussan.org Git - gitea.git/commitdiff
Add notice that LFS mirroring is not supported (#1251)
authorFabian Zaremba <fabian@youremail.eu>
Thu, 16 Mar 2017 11:33:22 +0000 (12:33 +0100)
committerLunny Xiao <xiaolunwen@gmail.com>
Thu, 16 Mar 2017 11:33:22 +0000 (19:33 +0800)
* Add notice that LFS mirroring is not supported

* Drop German translation

options/locale/locale_en-US.ini
routers/repo/repo.go
templates/repo/migrate.tmpl

index ad75f28c973f1c179295f30eedcb27cd7e3c0f5c..2ac92a4f8b3a570e6168f44e9fcd2f52f0b94e22 100644 (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
index fa111d5e4a2f7e3e832c2fb8724dd6e57bce46b1..9b411648c61cdb8b9d509174a4f93fe08d1c234a 100644 (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() {
index 17d563032816a64b84755101ba9c1e9f2aa3c736..e05768e417ea6fab018a9f49b5288c2917f0c388 100644 (file)
                                        <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}}">