invalid shas return empty treemaps

This commit is contained in:
rick
2010-09-03 10:59:30 -07:00
parent 50e9a42503
commit 42bd6c221a
+2
View File
@@ -471,6 +471,8 @@ module Gollum
@ref_map[ref] = real_sha if real_sha != ref
@tree_map[real_sha] ||= parse_tree_for(real_sha)
end
rescue Grit::GitRuby::Repository::NoSuchShaFound
[]
end
# Finds the full listing of files and their blob SHA for a given commit