Added getBranches() method to Repository