summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-09-23 14:29:41 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-09-23 14:29:41 +0200
commitaba9668acebd3bc741affc4ff06ca3e75224d66a (patch)
tree4be583ec36d5b4d5a4dfa2017491fa9d56293378
parent2eb9a20f36054d99e52342aae1b018206e7791a3 (diff)
downloadgitlab-ce-aba9668acebd3bc741affc4ff06ca3e75224d66a.tar.gz
Rescue rugged error when detect ci yml file
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
-rw-r--r--app/services/git_push_service.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/services/git_push_service.rb b/app/services/git_push_service.rb
index fb4a6dd8742..8193b6e192d 100644
--- a/app/services/git_push_service.rb
+++ b/app/services/git_push_service.rb
@@ -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