mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-07-16 23:18:56 +08:00
FIX query branches bug
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user