summaryrefslogtreecommitdiffstats
path: root/lib/redmine/scm/adapters/mercurial_adapter.rb
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-03-03 05:32:33 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-03-03 05:32:33 +0000
commit71aac2e3fe47ceeafa1c6a50aa8025093af4d33f (patch)
tree2d8b5b6ee345fc91ea0b3a0bcc0cd3d77b8534ad /lib/redmine/scm/adapters/mercurial_adapter.rb
parentcc210c58a436c7166693a90cf0433c8278969951 (diff)
downloadredmine-71aac2e3fe47ceeafa1c6a50aa8025093af4d33f.tar.gz
redmine-71aac2e3fe47ceeafa1c6a50aa8025093af4d33f.zip
scm: fix unit tests fails in Ruby 1.9.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4992 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/redmine/scm/adapters/mercurial_adapter.rb')
-rw-r--r--lib/redmine/scm/adapters/mercurial_adapter.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/redmine/scm/adapters/mercurial_adapter.rb b/lib/redmine/scm/adapters/mercurial_adapter.rb
index c60eb99e3..a0f1db195 100644
--- a/lib/redmine/scm/adapters/mercurial_adapter.rb
+++ b/lib/redmine/scm/adapters/mercurial_adapter.rb
@@ -54,7 +54,7 @@ module Redmine
# The hg version is expressed either as a
# release number (eg 0.9.5 or 1.0) or as a revision
# id composed of 12 hexa characters.
- theversion = hgversion_from_command_line
+ theversion = hgversion_from_command_line.dup
if theversion.respond_to?(:force_encoding)
theversion.force_encoding('ASCII-8BIT')
end