diff options
author | Go MAEDA <maeda@farend.jp> | 2019-10-05 05:46:39 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2019-10-05 05:46:39 +0000 |
commit | d182e736436fb64c83a364ce04163d143ffd30e2 (patch) | |
tree | dbadb1c59e9804004d202d18c0ab4d9147413abf /lib/redmine/version.rb | |
parent | 5ce4a363a951e4a64afd29bbe216b83fe4fdcc12 (diff) | |
download | redmine-d182e736436fb64c83a364ce04163d143ffd30e2.tar.gz redmine-d182e736436fb64c83a364ce04163d143ffd30e2.zip |
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
Diffstat (limited to 'lib/redmine/version.rb')
-rw-r--r-- | lib/redmine/version.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/redmine/version.rb b/lib/redmine/version.rb index 03eeadef9..8c6cb1c0e 100644 --- a/lib/redmine/version.rb +++ b/lib/redmine/version.rb @@ -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 |