Commit f18ecb8d authored by maeda's avatar maeda

Redmine::VERSION::revision should take subversion_command_setting into account (#28920).

Patch by Yuichi Harada.


git-svn-id: https://svn.redmine.org/redmine/trunk@17407 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent bbdee58e
......@@ -18,7 +18,7 @@ module Redmine
if File.directory?(File.join(Rails.root, '.svn'))
begin
path = Redmine::Scm::Adapters::AbstractAdapter.shell_quote(Rails.root.to_s)
if `svn info --xml #{path}` =~ /revision="(\d+)"/
if `#{Redmine::Scm::Adapters::SubversionAdapter.client_command} info --xml #{path}` =~ /revision="(\d+)"/
return $1.to_i
end
rescue
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment