Dave Jarvis' Repositories

git clone https://repo.autonoma.ca/repo/treetrek.git
new/Views.php
echo '<p>' . $stats['branches'] . ' branches, ' . $stats['tags'] . ' tags</p>';
- $git->history('HEAD', 1, function($c) {
- echo '<p style="margin-top: 8px; color: #58a6ff;">' . $this->time_elapsed_string($c->date) . '</p>';
- });
+ // Fixed: Only attempt to fetch history if a main branch exists
+ if ($main) {
+ $git->history('HEAD', 1, function($c) {
+ echo '<p style="margin-top: 8px; color: #58a6ff;">' . $this->time_elapsed_string($c->date) . '</p>';
+ });
+ }
echo '</a>';
}
new/index.php
require_once 'Git.php';
require_once 'Config.php';
+require_once 'Page.php';
require_once 'Router.php';

Fixes missing include

Author Dave Jarvis <email>
Date 2026-02-08 17:55:47 GMT-0800
Commit 4475cc78d26c189332d33a902dae7c4c8d9e25fd
Parent 6f4d8a0
Delta 7 lines added, 3 lines removed, 4-line increase