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:
authorHiroyuki Sato <sathiroyuki@gmail.com>2013-08-20 07:05:23 +0400
committerHiroyuki Sato <sathiroyuki@gmail.com>2013-08-20 07:05:23 +0400
commitfd0afcc996d687232c1181263b17793b2827d44e (patch)
tree06839797007893a37a1ecc16a311b8a8fa998999 /app/helpers/graph_helper.rb
parent65cba5c6b91483f7f629c9bb2dcd98e2da92405c (diff)
Remove the dependancy of grit from class Network::Graph
Diffstat (limited to 'app/helpers/graph_helper.rb')
-rw-r--r--app/helpers/graph_helper.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/helpers/graph_helper.rb b/app/helpers/graph_helper.rb
index 71a07d6cad1..7cb1b6f8d1a 100644
--- a/app/helpers/graph_helper.rb
+++ b/app/helpers/graph_helper.rb
@@ -1,7 +1,7 @@
module GraphHelper
- def get_refs(commit)
+ def get_refs(repo, commit)
refs = ""
- refs += commit.refs.collect{|r|r.name}.join(" ") if commit.refs
+ refs += commit.ref_names(repo).join(" ")
# append note count
refs += "[#{@graph.notes[commit.id]}]" if @graph.notes[commit.id] > 0