Vote #79344
完了Redmine::VERSION::revision should take subversion_command setting into account
0%
説明
The revision number may not be shown on admin_info page because the execution of the svn command fails in some cases.
Redmine::VERSION::revision method should take @scm_subversion_command@ setting into account.
Index: lib/redmine/version.rb
===================================================================
--- lib/redmine/version.rb (revision 17354)
+++ lib/redmine/version.rb (working copy)
@@ -17,7 +17,7 @@
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
journals
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
Committed. The patch was provided by Yuichi Harada. Thank you for the contribution.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
related_issues
relates,Closed,7517,Configurable path of executable for scm adapters
relates,Closed,32110,"already initialized constant Redmine::Scm::Adapters::SubversionAdapter::SVN_BIN" warning when executing rake tasks