summaryrefslogtreecommitdiffstats
path: root/lib/redmine
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2008-01-06 17:33:41 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2008-01-06 17:33:41 +0000
commit78d9ae9754578cda4b72d7b28a4f707534c15c49 (patch)
treeaf3fcf352c6dea566b8c04ca1ff07c3a4ae4df2e /lib/redmine
parent3d920c13b49e40e3ce3e18e60314a9a43f558cd9 (diff)
downloadredmine-78d9ae9754578cda4b72d7b28a4f707534c15c49.tar.gz
redmine-78d9ae9754578cda4b72d7b28a4f707534c15c49.zip
Fixed: crash when fetching Mercurial changesets if changeset[:files] is nil (same fix as r921).
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1045 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/redmine')
-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 1b9cab47c..3c905fc0f 100644
--- a/lib/redmine/scm/adapters/mercurial_adapter.rb
+++ b/lib/redmine/scm/adapters/mercurial_adapter.rb
@@ -112,7 +112,7 @@ module Redmine
:author => changeset[:user],
:time => Time.parse(changeset[:date]),
:message => changeset[:description],
- :paths => changeset[:files].split.collect{|path| {:action => 'X', :path => "/#{path}"}}
+ :paths => changeset[:files].to_s.split.collect{|path| {:action => 'X', :path => "/#{path}"}}
})
end
return nil if $? && $?.exitstatus != 0