Browse Source

Redmine::VERSION::revision may return wrong value (#29601).

Patch by Yuichi HARADA.


git-svn-id: http://svn.redmine.org/redmine/trunk@18594 e93f8b46-1217-0410-a6f0-8f06a7374b81
tags/4.1.0
Go MAEDA 4 years ago
parent
commit
d182e73643
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      lib/redmine/version.rb

+ 1
- 1
lib/redmine/version.rb View File

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

Loading…
Cancel
Save