1
0
mirror of https://github.com/meineerde/redmine.git synced 2026-01-10 17:41:31 +00:00

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

Patch by Yuichi Harada.


git-svn-id: http://svn.redmine.org/redmine/trunk@17407 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Go MAEDA 2018-06-22 05:30:05 +00:00
parent 799912e119
commit 157a291b66

View File

@ -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