* Show default branch.

This commit is contained in:
liyuchun
2022-06-21 05:37:24 +00:00
parent 76c813efc9
commit 6076785841
+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]))
{