blob: 2829141259b9b388de803f34edc1a8da2ab72cce [file] [log] [blame]
from tg import expose, redirect
from tg.decorators import with_trailing_slash
from pylons import c
from allura.controllers import repository
class BranchBrowser(repository.BranchBrowser):
@expose('jinja:forgegit:templates/git/index.html')
@with_trailing_slash
def index(self, limit=None, page=0, count=0, **kw):
latest = c.app.repo.latest(branch=self._branch)
if not latest:
return dict(allow_fork=False, log=[])
redirect(latest.url() + 'tree/')