]> source.dussan.org Git - redmine.git/commitdiff
Fixed: Mercurial integration doesn't work if redmine is installed in folder path...
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Tue, 21 Apr 2009 16:05:04 +0000 (16:05 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Tue, 21 Apr 2009 16:05:04 +0000 (16:05 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2679 e93f8b46-1217-0410-a6f0-8f06a7374b81

lib/redmine/scm/adapters/mercurial_adapter.rb

index 4eed776d8b3f64cec3a9c29c090f722b694fffca..ee7d7ea9d02064c0b8da365b2ac9fa4da380cbe1 100644 (file)
@@ -105,7 +105,7 @@ module Redmine
         # makes Mercurial produce a xml output.
         def revisions(path=nil, identifier_from=nil, identifier_to=nil, options={})  
           revisions = Revisions.new
-          cmd = "#{HG_BIN} --debug --encoding utf8 -R #{target('')} log -C --style #{self.class.template_path}"
+          cmd = "#{HG_BIN} --debug --encoding utf8 -R #{target('')} log -C --style #{shell_quote self.class.template_path}"
           if identifier_from && identifier_to
             cmd << " -r #{identifier_from.to_i}:#{identifier_to.to_i}"
           elsif identifier_from