diff options
author | Unknwon <u@gogs.io> | 2017-01-26 17:43:37 -0500 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2017-01-26 17:43:37 -0500 |
commit | ae319da5fd91c102b387296f9884401e120f9b79 (patch) | |
tree | 82876db589f1f15d0b2d6cf7790f8a3f06f0c14f /conf | |
parent | 6d6848af5c8b3188dd538299fa6d50073c8d8153 (diff) |
Disable local path migration by default (#4033)
Site admin now has to enable manually by config option
[repository] ENABLE_LOCAL_PATH_MIGRATION = true.
Site admin always grants this permission, but regulars users have
to be allowed by site admins in admin user panel.
Diffstat (limited to 'conf')
-rw-r--r-- | conf/app.ini | 2 | ||||
-rw-r--r-- | conf/locale/locale_en-US.ini | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/conf/app.ini b/conf/app.ini index 19c5c7a9..f11627c4 100644 --- a/conf/app.ini +++ b/conf/app.ini @@ -26,6 +26,8 @@ PULL_REQUEST_QUEUE_LENGTH = 1000 PREFERRED_LICENSES = Apache License 2.0,MIT License ; Disable ability to interact with repositories by HTTP protocol DISABLE_HTTP_GIT = false +; Enable ability to migrate repository by local path +ENABLE_LOCAL_PATH_MIGRATION = false [repository.editor] ; List of file extensions that should have line wraps in the CodeMirror editor diff --git a/conf/locale/locale_en-US.ini b/conf/locale/locale_en-US.ini index f326ab89..be36ae7c 100644 --- a/conf/locale/locale_en-US.ini +++ b/conf/locale/locale_en-US.ini @@ -384,7 +384,8 @@ migrate_type = Migration Type migrate_type_helper = This repository will be a <span class="text blue">mirror</span> migrate_repo = Migrate Repository migrate.clone_address = Clone Address -migrate.clone_address_desc = This can be a HTTP/HTTPS/GIT URL or local server path. +migrate.clone_address_desc = This can be a HTTP/HTTPS/GIT URL. +migrate.clone_address_desc_import_local = You're also allowed to migrate a repository by 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 |