summaryrefslogtreecommitdiff
path: root/app/finders/pipelines_finder.rb
diff options
context:
space:
mode:
authorPaco Guzman <pacoguzmanp@gmail.com>2016-06-29 07:10:18 +0200
committerPaco Guzman <pacoguzmanp@gmail.com>2016-06-29 07:10:58 +0200
commit4c89cd4b73f2c35644ec18cd285df1b04586a90d (patch)
tree84758dd324e282ba0e3938f6508b3bcc82d1ebb5 /app/finders/pipelines_finder.rb
parent3611ee5663a25bc619b7c2201908af99dc58debf (diff)
downloadgitlab-ce-4c89cd4b73f2c35644ec18cd285df1b04586a90d.tar.gz
PipelinesFinder use git cached data19318-pipelines-find-git-calls
Diffstat (limited to 'app/finders/pipelines_finder.rb')
-rw-r--r--app/finders/pipelines_finder.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/finders/pipelines_finder.rb b/app/finders/pipelines_finder.rb
index c19a795d467..641fbf838f1 100644
--- a/app/finders/pipelines_finder.rb
+++ b/app/finders/pipelines_finder.rb
@@ -29,10 +29,10 @@ class PipelinesFinder
end
def branches
- project.repository.branches.map(&:name)
+ project.repository.branch_names
end
def tags
- project.repository.tags.map(&:name)
+ project.repository.tag_names
end
end