@@ -107,6 +107,15 default: | |||||
107 | autologin_cookie_path: |
|
107 | autologin_cookie_path: | |
108 | autologin_cookie_secure: |
|
108 | autologin_cookie_secure: | |
109 |
|
109 | |||
|
110 | # Configuration of SCM executable command. | |||
|
111 | # Absolute path (ex. /usr/local/bin/hg) or command name (ex. hg.exe, bzr.exe) | |||
|
112 | # On Windows, *.cmd, *.bat (ex. hg.cmd, bzr.bat) does not work. | |||
|
113 | scm_command_subversion: svn # (default: svn) | |||
|
114 | scm_command_mercurial: "\"C:\Program Files\TortoiseHg\hg.exe\"" # (default: hg) | |||
|
115 | scm_command_git: /usr/local/bin/git # (default: git) | |||
|
116 | scm_command_bazaar: bzr.exe # (default: bzr) | |||
|
117 | scm_command_darcs: darcs-1.0.9-i386-linux # (default: darcs) | |||
|
118 | ||||
110 | # specific configuration options for production environment |
|
119 | # specific configuration options for production environment | |
111 | # that overrides the default ones |
|
120 | # that overrides the default ones | |
112 | production: |
|
121 | production: |
@@ -23,7 +23,7 module Redmine | |||||
23 | class BazaarAdapter < AbstractAdapter |
|
23 | class BazaarAdapter < AbstractAdapter | |
24 |
|
24 | |||
25 | # Bazaar executable name |
|
25 | # Bazaar executable name | |
26 | BZR_BIN = "bzr" |
|
26 | BZR_BIN = Redmine::Configuration['scm_command_bazaar'] || "bzr" | |
27 |
|
27 | |||
28 | # Get info about the repository |
|
28 | # Get info about the repository | |
29 | def info |
|
29 | def info |
@@ -23,7 +23,7 module Redmine | |||||
23 | class CvsAdapter < AbstractAdapter |
|
23 | class CvsAdapter < AbstractAdapter | |
24 |
|
24 | |||
25 | # CVS executable name |
|
25 | # CVS executable name | |
26 | CVS_BIN = "cvs" |
|
26 | CVS_BIN = Redmine::Configuration['scm_command_cvs'] || "cvs" | |
27 |
|
27 | |||
28 | # Guidelines for the input: |
|
28 | # Guidelines for the input: | |
29 | # url -> the project-path, relative to the cvsroot (eg. module name) |
|
29 | # url -> the project-path, relative to the cvsroot (eg. module name) |
@@ -23,7 +23,7 module Redmine | |||||
23 | module Adapters |
|
23 | module Adapters | |
24 | class DarcsAdapter < AbstractAdapter |
|
24 | class DarcsAdapter < AbstractAdapter | |
25 | # Darcs executable name |
|
25 | # Darcs executable name | |
26 | DARCS_BIN = "darcs" |
|
26 | DARCS_BIN = Redmine::Configuration['scm_command_darcs'] || "darcs" | |
27 |
|
27 | |||
28 | class << self |
|
28 | class << self | |
29 | def client_version |
|
29 | def client_version |
@@ -22,7 +22,7 module Redmine | |||||
22 | module Adapters |
|
22 | module Adapters | |
23 | class GitAdapter < AbstractAdapter |
|
23 | class GitAdapter < AbstractAdapter | |
24 | # Git executable name |
|
24 | # Git executable name | |
25 | GIT_BIN = "git" |
|
25 | GIT_BIN = Redmine::Configuration['scm_command_git'] || "git" | |
26 |
|
26 | |||
27 | def info |
|
27 | def info | |
28 | begin |
|
28 | begin |
@@ -24,7 +24,7 module Redmine | |||||
24 | class MercurialAdapter < AbstractAdapter |
|
24 | class MercurialAdapter < AbstractAdapter | |
25 |
|
25 | |||
26 | # Mercurial executable name |
|
26 | # Mercurial executable name | |
27 | HG_BIN = "hg" |
|
27 | HG_BIN = Redmine::Configuration['scm_command_mercurial'] || "hg" | |
28 | TEMPLATES_DIR = File.dirname(__FILE__) + "/mercurial" |
|
28 | TEMPLATES_DIR = File.dirname(__FILE__) + "/mercurial" | |
29 | TEMPLATE_NAME = "hg-template" |
|
29 | TEMPLATE_NAME = "hg-template" | |
30 | TEMPLATE_EXTENSION = "tmpl" |
|
30 | TEMPLATE_EXTENSION = "tmpl" |
@@ -24,7 +24,7 module Redmine | |||||
24 | class SubversionAdapter < AbstractAdapter |
|
24 | class SubversionAdapter < AbstractAdapter | |
25 |
|
25 | |||
26 | # SVN executable name |
|
26 | # SVN executable name | |
27 | SVN_BIN = "svn" |
|
27 | SVN_BIN = Redmine::Configuration['scm_command_subversion'] || "svn" | |
28 |
|
28 | |||
29 | class << self |
|
29 | class << self | |
30 | def client_version |
|
30 | def client_version |
General Comments 0
You need to be logged in to leave comments.
Login now