diff --git a/pylons_app/controllers/summary.py b/pylons_app/controllers/summary.py --- a/pylons_app/controllers/summary.py +++ b/pylons_app/controllers/summary.py @@ -47,6 +47,12 @@ class SummaryController(BaseController): 'host':e.get('HTTP_HOST'), 'repo_name':c.repo_name, } c.clone_repo_url = uri - c.repo_tags = c.repo_info.tags[:10] - c.repo_branches = c.repo_info.branches[:10] + c.repo_tags = {} + for name, hash in c.repo_info.tags.items()[:10]: + c.repo_tags[name] = c.repo_info.get_changeset(hash) + + c.repo_branches = {} + for name, hash in c.repo_info.branches.items()[:10]: + c.repo_branches[name] = c.repo_info.get_changeset(hash) + return render('summary/summary.html')