Prevent 500 error if cant detect branches for commit

This commit is contained in:
Dmitriy Zaporozhets 2013-10-23 19:29:29 +03:00
parent c2f74de4c0
commit 2b555306a1
2 changed files with 12 additions and 12 deletions

View File

@ -39,7 +39,8 @@
- @commit.parents.each do |parent|
= link_to parent.id[0...10], project_commit_path(@project, parent)
.commit-info-row
- if @branches.any?
.commit-info-row
%span.cgray
Exists in
%span

View File

@ -109,7 +109,6 @@ class ProjectMergeRequests < Spinach::FeatureSteps
end
And 'I click on the first commit in the merge request' do
click_link merge_request.commits.first.short_id(8)
end