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

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