Rescue rugged error when detect ci yml file

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
Dmitriy Zaporozhets 2015-09-23 14:29:41 +02:00
parent 2eb9a20f36
commit aba9668ace
No known key found for this signature in database
GPG Key ID: 161B5D6A44D3D88A
1 changed files with 2 additions and 0 deletions

View File

@ -152,5 +152,7 @@ class GitPushService
def gitlab_ci_yaml?(sha)
@project.repository.blob_at(sha, '.gitlab-ci.yml')
rescue Rugged::ReferenceError
nil
end
end