summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2012-02-14 23:53:41 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2012-02-14 23:53:41 +0200
commitccfeddec46444867b7d459c332216a5a3645f608 (patch)
treeb50b01eea7a3f6492a159c03e6d957c452498a6a
parent5ac434a60e7714e1248fd37f741f2a96641d4440 (diff)
downloadgitlab-ce-ccfeddec46444867b7d459c332216a5a3645f608.tar.gz
Ignore invalid submodule entries
-rw-r--r--app/views/refs/_submodule_item.html.haml2
1 files changed, 1 insertions, 1 deletions
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 }