Commit aba9668a authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Rescue rugged error when detect ci yml file

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent 2eb9a20f
......@@ -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
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment