Skip to content
Snippets Groups Projects
Verified Commit 179bae99 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

rescue Rugged::ReferenceError in Repository#gitlab_ci_yml method

parent 3dc0c3e4
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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
Loading
Loading
Loading
Loading
@@ -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
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment