mirror of
https://github.com/klaussilveira/gitlist.git
synced 2025-11-17 19:20:56 +01:00
@@ -3,7 +3,7 @@
|
||||
$app->get('{repo}/commits/{branch}', function($repo, $branch) use($app) {
|
||||
$repository = $app['git']->getRepository($app['git.repos'] . $repo);
|
||||
$pager = $app['utils']->getPager($app['request']->get('page'), $repository->getTotalCommits());
|
||||
$commits = $repository->getCommits(null, $pager['current']);
|
||||
$commits = $repository->getCommits($branch, $pager['current']);
|
||||
|
||||
foreach ($commits as $commit) {
|
||||
$date = $commit->getDate();
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
$app->get('{repo}/{branch}/rss/', function($repo, $branch) use($app) {
|
||||
$repository = $app['git']->getRepository($app['git.repos'] . $repo);
|
||||
$commits = $repository->getCommits();
|
||||
$commits = $repository->getCommits($branch);
|
||||
|
||||
$html = $app['twig']->render('rss.twig', array(
|
||||
'baseurl' => $app['baseurl'],
|
||||
|
||||
Reference in New Issue
Block a user