Rescue rugged error when detect ci yml file
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
parent
2eb9a20f36
commit
aba9668ace
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue