summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-07-02 14:26:13 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-07-02 14:26:13 +0300
commit3802ae0cfa17dbe33d09e3d006b162fa9ab1c256 (patch)
treebc4c649e38bd1e272e7b9e9b450cf5954c76a399 /app
parent15bc1223c79a8cfbc558b2eaaca06994e0272333 (diff)
downloadgitlab-ce-3802ae0cfa17dbe33d09e3d006b162fa9ab1c256.tar.gz
Prevent tree log crash if commit missing
Diffstat (limited to 'app')
-rw-r--r--app/views/projects/refs/logs_tree.js.haml1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/views/projects/refs/logs_tree.js.haml b/app/views/projects/refs/logs_tree.js.haml
index 1bea286a879..213c54f5f75 100644
--- a/app/views/projects/refs/logs_tree.js.haml
+++ b/app/views/projects/refs/logs_tree.js.haml
@@ -1,6 +1,7 @@
- @logs.each do |content_data|
- file_name = content_data[:file_name]
- commit = content_data[:commit]
+ - next unless commit
:plain
var row = $("table.table_#{@hex_path} tr.file_#{hexdigest(file_name)}");