fixed nonexisting $this->branchrepo