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
This commit is contained in:
parent
3d920c13b4
commit
78d9ae9754
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue