summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorEtienne Massip <etienne.massip@gmail.com>2011-12-08 19:22:00 +0000
committerEtienne Massip <etienne.massip@gmail.com>2011-12-08 19:22:00 +0000
commitf385a3e3da51d85183d9bd5a111c206a24f9529e (patch)
tree93a7908711ff97a8bc499775289fb5009d50dd7f /lib
parent3976e2d15dd0ea7ffdb6ceff8910fcaae0b6ed67 (diff)
downloadredmine-f385a3e3da51d85183d9bd5a111c206a24f9529e.tar.gz
redmine-f385a3e3da51d85183d9bd5a111c206a24f9529e.zip
Handle spaces in development scm stderr log file path.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8129 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib')
-rw-r--r--lib/redmine/scm/adapters/abstract_adapter.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/redmine/scm/adapters/abstract_adapter.rb b/lib/redmine/scm/adapters/abstract_adapter.rb
index 4a425481c..bb46a4865 100644
--- a/lib/redmine/scm/adapters/abstract_adapter.rb
+++ b/lib/redmine/scm/adapters/abstract_adapter.rb
@@ -220,7 +220,7 @@ module Redmine
end
if Rails.env == 'development'
# Capture stderr when running in dev environment
- cmd = "#{cmd} 2>>#{Rails.root}/log/scm.stderr.log"
+ cmd = "#{cmd} 2>>#{shell_quote(Rails.root.join('log/scm.stderr.log').to_s)}"
end
begin
if RUBY_VERSION < '1.9'