From a713e61437ff15a3bbf330d8c14223757be5919c Mon Sep 17 00:00:00 2001 From: Jasder <2053003901@@qq.com> Date: Wed, 21 Oct 2020 11:55:03 +0800 Subject: [PATCH] FIX query branches bug --- app/controllers/projects_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/projects_controller.rb b/app/controllers/projects_controller.rb index 9bfc60437..777eaed73 100644 --- a/app/controllers/projects_controller.rb +++ b/app/controllers/projects_controller.rb @@ -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