Commit 179bae99 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

rescue Rugged::ReferenceError in Repository#gitlab_ci_yml method

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent 3dc0c3e4
......@@ -473,6 +473,10 @@ class Repository
@gitlab_ci_yml ||= tree(:head).blobs.find do |file|
file.name == '.gitlab-ci.yml'
end
rescue Rugged::ReferenceError
# For unknow reason spinach scenario "Scenario: I change project path"
# lead to "Reference 'HEAD' not found" exception from Repository#empty?
nil
end
def head_commit
......
......@@ -52,7 +52,6 @@ Feature: Project
And I save project
Then I should see project with new settings
@javascript
Scenario: I change project path
When I visit edit project "Shop" page
And change project path settings
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment