add HasRepository() and GetBranches()