mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-13 00:06:01 +08:00
FIX query branches bug
This commit is contained in:
@@ -34,7 +34,7 @@ class ProjectsController < ApplicationController
|
||||
end
|
||||
|
||||
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
|
||||
|
||||
def group_type_list
|
||||
|
||||
Reference in New Issue
Block a user