FIX query branches bug

This commit is contained in:
Jasder 2020-10-21 11:55:03 +08:00
parent 99f67cf3a7
commit a713e61437
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@ class ProjectsController < ApplicationController
end end
def branches def branches
@branches = Gitea::Repository::Branches::ListService.new(@project.owner, @project.identifier).call @branches = @project.forge? ? Gitea::Repository::Branches::ListService.new(@project.owner, @project.identifier).call : []
end end
def group_type_list def group_type_list