diff --git a/app/views/refs/_submodule_item.html.haml b/app/views/refs/_submodule_item.html.haml
index fc32c37..6db4931 100644
--- a/app/views/refs/_submodule_item.html.haml
+++ b/app/views/refs/_submodule_item.html.haml
@@ -1,4 +1,4 @@
-- url = content.url(@ref)
+- url = content.url(@ref) rescue nil
- name = content.basename
- return unless url
%tr{ :class => "tree-item", :url => url }
--
libgit2 0.21.2