summaryrefslogtreecommitdiff
path: root/app/presenters
diff options
context:
space:
mode:
authorClement Ho <ClemMakesApps@gmail.com>2017-07-11 09:48:59 -0500
committerClement Ho <ClemMakesApps@gmail.com>2017-07-11 09:48:59 -0500
commit09193a4fe18044a61021afef1282ec60b81810b1 (patch)
treeec6107dd34bacca03bd71e6a04a5eb528d5d2dc7 /app/presenters
parent9e4e1afb4a7907f2a79d18fd9b5d03c9f6599ccf (diff)
downloadgitlab-ce-09193a4fe18044a61021afef1282ec60b81810b1.tar.gz
Convert target branch link to use tree
Diffstat (limited to 'app/presenters')
-rw-r--r--app/presenters/merge_request_presenter.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/presenters/merge_request_presenter.rb b/app/presenters/merge_request_presenter.rb
index 101568b66b7..4084a982071 100644
--- a/app/presenters/merge_request_presenter.rb
+++ b/app/presenters/merge_request_presenter.rb
@@ -76,9 +76,9 @@ class MergeRequestPresenter < Gitlab::View::Presenter::Delegated
end
end
- def target_branch_commits_path
+ def target_branch_tree_path
if target_branch_exists?
- project_commits_path(project, target_branch)
+ project_tree_path(project, target_branch)
end
end