diff --git a/app/controllers/projects/git/trees_controller.rb b/app/controllers/projects/git/trees_controller.rb index 912d961ad..7e7e47a2a 100644 --- a/app/controllers/projects/git/trees_controller.rb +++ b/app/controllers/projects/git/trees_controller.rb @@ -25,7 +25,7 @@ class Projects::Git::TreesController < Projects::Git::BaseController end def tags - @tags = @project.repo.tags.sort_by(&:name) + @tags = @project.repo.tags.select{ |t| t.commit }.sort_by(&:name) end def branches