GitAccess#tree should always return an array
This commit is contained in:
@@ -49,6 +49,8 @@ module Gollum
|
|||||||
def tree(ref)
|
def tree(ref)
|
||||||
if sha = ref_to_sha(ref)
|
if sha = ref_to_sha(ref)
|
||||||
get_cache(:tree, sha) { tree!(sha) }
|
get_cache(:tree, sha) { tree!(sha) }
|
||||||
|
else
|
||||||
|
[]
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user