[api2] Fixed bug in listing shared repos.