diff --git a/app/controllers/projects_controller.rb b/app/controllers/projects_controller.rb index 424b75515..293c9a5ff 100644 --- a/app/controllers/projects_controller.rb +++ b/app/controllers/projects_controller.rb @@ -30,7 +30,7 @@ class ProjectsController < ApplicationController end def branches - @branches = Gitea::Repository::BranchesService.new(current_user, @project.identifier).call + @branches = Gitea::Repository::BranchesService.new(@project.owner, @project.identifier).call end def group_type_list