Commit 6a52b1ecd25883a547617d817aed40face3d08a2

Workaround edgecase where we can't get the last_commit for a given treenode due to weird encodings

Commit diff

app/views/trees/show.html.erb

 
1414 <% else -%>
1515 <td class="node file"><%= link_to h(node.basename), blob_path(params[:id], node.name) -%></td>
1616 <% end -%>
17 <% last_commit = commit_for_tree_path(@repository, node.name) -%>
18 <td class="meta"><%= last_commit.committed_date.to_s(:short) -%></td>
19 <td class="meta commit_message">
20 <%= link_to truncate(h(last_commit.message), 75, "&hellip;"), commit_path(last_commit.id) -%>
21 </td>
17 <% if last_commit = commit_for_tree_path(@repository, node.name) -%>
18 <td class="meta"><%= last_commit.committed_date.to_s(:short) -%></td>
19 <td class="meta commit_message">
20 <%= link_to truncate(h(last_commit.message), 75, "&hellip;"), commit_path(last_commit.id) -%>
21 </td>
22 <% end -%>
2223 </tr>
2324 <% end -%>
2425</table>
toggle raw diff