fix bug due to the way Array#to_s works in 1.9

This commit is contained in:
Brian Lopez
2011-01-20 15:06:21 -08:00
parent feef486f63
commit f708dc7002
+1 -1
View File
@@ -221,7 +221,7 @@ module Gollum
# Returns an Array of BlobEntry instances.
def parse_tree_line(line)
mode, type, sha, size, *name = line.split(/\s+/)
BlobEntry.new(sha, name.to_s, size.to_i)
BlobEntry.new(sha, name.join(' '), size.to_i)
end
# Decode octal sequences (\NNN) in tree path names.