diff options
author | Douwe Maan <douwe@gitlab.com> | 2017-04-20 03:37:44 +0300 |
---|---|---|
committer | Robert Speicher <robert@gitlab.com> | 2017-04-20 03:37:44 +0300 |
commit | d170133bded904603833f1b9e2727def3805962d (patch) | |
tree | a1c1e1f9973b43a5ff2482d4e1b91b219c5ac3af /app/helpers/tree_helper.rb | |
parent | bfb635a4afea60751a44e6454f9c36850b5342c9 (diff) |
Refactor changing files in web UI
Diffstat (limited to 'app/helpers/tree_helper.rb')
-rw-r--r-- | app/helpers/tree_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/tree_helper.rb b/app/helpers/tree_helper.rb index 4a76c679bad..f1dab60524e 100644 --- a/app/helpers/tree_helper.rb +++ b/app/helpers/tree_helper.rb @@ -35,7 +35,7 @@ module TreeHelper end def on_top_of_branch?(project = @project, ref = @ref) - project.repository.branch_names.include?(ref) + project.repository.branch_exists?(ref) end def can_edit_tree?(project = nil, ref = nil) |