From 6076785841f9e70e255c7d680d1b04f4017c5fe2 Mon Sep 17 00:00:00 2001 From: liyuchun <563917701@qq.com> Date: Tue, 21 Jun 2022 05:37:24 +0000 Subject: [PATCH] * Show default branch. --- module/repo/control.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/repo/control.php b/module/repo/control.php index c22cd0f7ab..7d4b2512aa 100644 --- a/module/repo/control.php +++ b/module/repo/control.php @@ -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])) {