Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2015-09-21 15:52:51 +0300
committerKamil Trzcinski <ayufan@ayufan.eu>2015-09-21 15:52:51 +0300
commitabaa65efc1f912ffef05ccaf1e92dc009f828278 (patch)
tree9cc63e2422b514e33337e9c3288c965a22bf7f97 /app/models
parent3abcab779ec3015914eda5d715b4a9588445d815 (diff)
Revert "Fixed MR handling when GitLab CI project is not present"
This reverts commit 3abcab779ec3015914eda5d715b4a9588445d815.
Diffstat (limited to 'app/models')
-rw-r--r--app/models/project_services/gitlab_ci_service.rb8
1 files changed, 2 insertions, 6 deletions
diff --git a/app/models/project_services/gitlab_ci_service.rb b/app/models/project_services/gitlab_ci_service.rb
index 9e2b3bcd873..820dd3f567c 100644
--- a/app/models/project_services/gitlab_ci_service.rb
+++ b/app/models/project_services/gitlab_ci_service.rb
@@ -46,9 +46,7 @@ class GitlabCiService < CiService
end
ci_project = Ci::Project.find_by(gitlab_id: project.id)
- if ci_project
- Ci::CreateCommitService.new.execute(ci_project, data)
- end
+ Ci::CreateCommitService.new.execute(ci_project, data)
end
def get_ci_commit(sha, ref)
@@ -87,9 +85,7 @@ class GitlabCiService < CiService
end
def build_page(sha, ref)
- if project.gitlab_ci_project.present?
- Ci::RoutesHelper.ci_project_ref_commits_path(project.gitlab_ci_project, ref, sha)
- end
+ Ci::RoutesHelper.ci_project_ref_commits_path(project.gitlab_ci_project, ref, sha)
end
def title