From ae319da5fd91c102b387296f9884401e120f9b79 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Thu, 26 Jan 2017 17:43:37 -0500 Subject: 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. --- conf/app.ini | 2 ++ conf/locale/locale_en-US.ini | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'conf') 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 mirror 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 -- cgit v1.2.3