rescue Rugged::ReferenceError in Repository#gitlab_ci_yml method
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
parent
3dc0c3e473
commit
179bae9968
2 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue