Patch by Yuichi HARADA. git-svn-id: http://svn.redmine.org/redmine/trunk@18594 e93f8b46-1217-0410-a6f0-8f06a7374b81tags/4.1.0
@@ -20,7 +20,7 @@ module Redmine | |||
if File.directory?(File.join(Rails.root, '.svn')) | |||
begin | |||
path = Redmine::Scm::Adapters::AbstractAdapter.shell_quote(Rails.root.to_s) | |||
if `#{Redmine::Scm::Adapters::SubversionAdapter.client_command} info --xml #{path}` =~ /revision="(\d+)"/ | |||
if `#{Redmine::Scm::Adapters::SubversionAdapter.client_command} info --xml #{path}` =~ /commit\s+revision="(\d+)"/ | |||
return $1.to_i | |||
end | |||
rescue |