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])) {