Fetches branches.