Merge branch 'liyuchun_57657' into 'zenops_36'

* Show default branch.

See merge request easycorp/zentaopms!4038
This commit is contained in:
孙广明
2022-06-21 06:35:04 +00:00
+1 -1
View File
@@ -391,7 +391,7 @@ class repo extends control
{
$branches = $this->repo->getBranches($repo);
if(empty($branchID) and $this->cookie->repoBranch) $branchID = $this->cookie->repoBranch;
if(empty($branchID) and $this->cookie->repoBranch and $this->session->repoID == $repoID) $branchID = $this->cookie->repoBranch;
if($branchID) $this->repo->setRepoBranch($branchID);
if(!isset($branches[$branchID]))
{