Dave Jarvis' Repositories

git clone https://repo.autonoma.ca/repo/treetrek.git

Adds debug information

Author Dave Jarvis <email>
Date 2026-01-14 21:52:14 GMT-0800
Commit e838fe951860616924fae1b12dcb8fb9fdf6b4c5
Parent 10b02be
views/repo_commits.php
+<?php
+if (empty($repo)) {
+ echo "<div class='card'><p>Error: No repository specified</p></div>";
+ return;
+}
+
+$commits = getCommits($repo, $ref);
+
+if ($commits === false || empty($commits)) {
+ echo "<div class='card'><p>Error: Could not load commits for repository: " . htmlspecialchars($repo) . "</p></div>";
+ echo "<div class='card'><pre>Debug - Repo path: " . REPOS_PATH . '/' . basename($repo) . "</pre></div>";
+}
+?>
<?php $commits = getCommits($repo, $ref); ?>
<div class="card">
Delta 13 lines added, 0 lines removed, 13-line increase