Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-07-02 15:26:13 +0400
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-07-02 15:26:13 +0400
commit3802ae0cfa17dbe33d09e3d006b162fa9ab1c256 (patch)
treebc4c649e38bd1e272e7b9e9b450cf5954c76a399 /app/views/projects/refs
parent15bc1223c79a8cfbc558b2eaaca06994e0272333 (diff)
Prevent tree log crash if commit missing
Diffstat (limited to 'app/views/projects/refs')
-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)}");