From 42bd6c221acd13021c59a79f4180e8daa948d0fd Mon Sep 17 00:00:00 2001 From: rick Date: Fri, 3 Sep 2010 10:59:30 -0700 Subject: [PATCH] invalid shas return empty treemaps --- lib/gollum/wiki.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/gollum/wiki.rb b/lib/gollum/wiki.rb index d6037183..16c4ed24 100644 --- a/lib/gollum/wiki.rb +++ b/lib/gollum/wiki.rb @@ -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