diff options
author | Phil Hughes <me@iamphill.com> | 2016-06-16 12:53:58 +0100 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2016-06-18 21:49:20 +0100 |
commit | 68c9981013b1aa87dde7421ffe5db0a342d55ee8 (patch) | |
tree | 147a9af9a77e0606649923c5a1e421989aca8b45 /app/helpers | |
parent | 3c8c9129654d49281024bfb444d95e5d7c35bcbd (diff) | |
download | gitlab-ce-68c9981013b1aa87dde7421ffe5db0a342d55ee8.tar.gz |
Correctly adds commit ID into dropdown
Removes un-used method
Fixes other Ruby issues
Diffstat (limited to 'app/helpers')
-rw-r--r-- | app/helpers/application_helper.rb | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 439b015b3b8..82421d74de9 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -101,22 +101,6 @@ module ApplicationHelper 'Never' end - def grouped_options_refs - repository = @project.repository - - options = [ - ['Branches', repository.branch_names], - ['Tags', VersionSorter.rsort(repository.tag_names)] - ] - - # If reference is commit id - we should add it to branch/tag selectbox - if @ref && !options.flatten.include?(@ref) && @ref =~ /\A[0-9a-zA-Z]{6,52}\z/ - options << ['Commit', [@ref]] - end - - grouped_options_for_select(options, @ref || @project.default_branch) - end - # Define whenever show last push event # with suggestion to create MR def show_last_push_widget?(event) |