GitAccess#tree should always return an array

This commit is contained in:
rick
2010-10-13 12:06:23 -07:00
parent 54917bbdb9
commit 1a19278fc7
+2
View File
@@ -49,6 +49,8 @@ module Gollum
def tree(ref)
if sha = ref_to_sha(ref)
get_cache(:tree, sha) { tree!(sha) }
else
[]
end
end