From ccfeddec46444867b7d459c332216a5a3645f608 Mon Sep 17 00:00:00 2001
From: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Date: Tue, 14 Feb 2012 23:53:41 +0200
Subject: [PATCH] Ignore invalid submodule entries

---
 app/views/refs/_submodule_item.html.haml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app/views/refs/_submodule_item.html.haml b/app/views/refs/_submodule_item.html.haml
index fc32c37b9a4..6db49310a08 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 }
-- 
GitLab