fix bug due to the way Array#to_s works in 1.9
This commit is contained in:
@@ -221,7 +221,7 @@ module Gollum
|
|||||||
# Returns an Array of BlobEntry instances.
|
# Returns an Array of BlobEntry instances.
|
||||||
def parse_tree_line(line)
|
def parse_tree_line(line)
|
||||||
mode, type, sha, size, *name = line.split(/\s+/)
|
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
|
end
|
||||||
|
|
||||||
# Decode octal sequences (\NNN) in tree path names.
|
# Decode octal sequences (\NNN) in tree path names.
|
||||||
|
|||||||
Reference in New Issue
Block a user