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
+2
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