Commit 3802ae0cfa17dbe33d09e3d006b162fa9ab1c256

Authored by Dmitriy Zaporozhets
1 parent 15bc1223

Prevent tree log crash if commit missing

Showing 1 changed file with 1 additions and 0 deletions   Show diff stats
app/views/projects/refs/logs_tree.js.haml
1 1 - @logs.each do |content_data|
2 2 - file_name = content_data[:file_name]
3 3 - commit = content_data[:commit]
  4 + - next unless commit
4 5  
5 6 :plain
6 7 var row = $("table.table_#{@hex_path} tr.file_#{hexdigest(file_name)}");
... ...