summaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2014-11-08 10:52:59 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2014-11-08 10:52:59 +0000
commit13f9ccaed853654df5cfb990884345b513f0b88c (patch)
tree7e7bc0be36a46b5e87032e89862f56894f68f422 /config
parent34bb545e4f327d24bd81a0bdb4ec02c6fb6ee0e7 (diff)
downloadredmine-13f9ccaed853654df5cfb990884345b513f0b88c.tar.gz
redmine-13f9ccaed853654df5cfb990884345b513f0b88c.zip
Adds configuration settings to limit valid repository path (#1415).
git-svn-id: http://svn.redmine.org/redmine/trunk@13573 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'config')
-rw-r--r--config/configuration.yml.example27
-rw-r--r--config/locales/en.yml1
-rw-r--r--config/locales/fr.yml5
3 files changed, 31 insertions, 2 deletions
diff --git a/config/configuration.yml.example b/config/configuration.yml.example
index da209f0bd..e6a8c6e20 100644
--- a/config/configuration.yml.example
+++ b/config/configuration.yml.example
@@ -108,6 +108,33 @@ default:
scm_bazaar_command:
scm_darcs_command:
+ # SCM paths validation.
+ #
+ # You can configure a regular expression for each SCM that will be used to
+ # validate the path of new repositories (eg. path entered by users with the
+ # "Manage repositories" permission and path returned by reposman.rb).
+ # The regexp will be wrapped with \A \z, so it must match the whole path.
+ # And the regexp is case sensitive.
+ #
+ # You can match the project identifier by using %project% in the regexp.
+ #
+ # You can also set a custom hint message for each SCM that will be displayed
+ # on the repository form instead of the default one.
+ #
+ # Examples:
+ # scm_subversion_path_regexp: file:///svnpath/[a-z0-9_]+
+ # scm_subversion_path_info: SVN URL (eg. file:///svnpath/foo)
+ #
+ # scm_git_path_regexp: /gitpath/%project%(\.[a-z0-9_])?/
+ #
+ scm_subversion_path_regexp:
+ scm_mercurial_path_regexp:
+ scm_git_path_regexp:
+ scm_cvs_path_regexp:
+ scm_bazaar_path_regexp:
+ scm_darcs_path_regexp:
+ scm_filesystem_path_regexp:
+
# Absolute path to the SCM commands errors (stderr) log file.
# The default is to log in the 'log' directory of your Redmine instance.
# Example:
diff --git a/config/locales/en.yml b/config/locales/en.yml
index 66de43259..f0372bccf 100644
--- a/config/locales/en.yml
+++ b/config/locales/en.yml
@@ -1052,6 +1052,7 @@ en:
text_zoom_out: Zoom out
text_warn_on_leaving_unsaved: "The current page contains unsaved text that will be lost if you leave this page."
text_scm_path_encoding_note: "Default: UTF-8"
+ text_subversion_repository_note: "Examples: file:///, http://, https://, svn://, svn+[tunnelscheme]://"
text_git_repository_note: Repository is bare and local (e.g. /gitrepo, c:\gitrepo)
text_mercurial_repository_note: Local repository (e.g. /hgrepo, c:\hgrepo)
text_scm_command: Command
diff --git a/config/locales/fr.yml b/config/locales/fr.yml
index e575388e8..25693d080 100644
--- a/config/locales/fr.yml
+++ b/config/locales/fr.yml
@@ -1072,8 +1072,9 @@ fr:
text_zoom_out: Zoom arrière
text_warn_on_leaving_unsaved: "Cette page contient du texte non sauvegardé qui sera perdu si vous quittez la page."
text_scm_path_encoding_note: "Défaut : UTF-8"
- text_git_repository_note: "Le dépôt est vide et local (exemples : /gitrepo, c:\\gitrepo)"
- text_mercurial_repository_note: "Dépôt local (exemples : /hgrepo, c:\\hgrepo)"
+ text_subversion_repository_note: "Exemples (en fonction des protocoles supportés) : file:///, http://, https://, svn://, svn+[tunnelscheme]://"
+ text_git_repository_note: "Chemin vers un dépôt vide et local (exemples : /gitrepo, c:\\gitrepo)"
+ text_mercurial_repository_note: "Chemin vers un dépôt local (exemples : /hgrepo, c:\\hgrepo)"
text_scm_command: Commande
text_scm_command_version: Version
text_scm_config: Vous pouvez configurer les commandes des SCM dans config/configuration.yml. Redémarrer l'application après modification.