Merge branch 'liyuchun_57657' into 'zenops_36'
* Show default branch. See merge request easycorp/zentaopms!4038
This commit is contained in:
@@ -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]))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user