mirror of
https://github.com/klaussilveira/gitlist.git
synced 2026-05-07 02:26:16 +02:00
Better behavior when dealing with repositories with empty commits, see #319
This commit is contained in:
@@ -71,11 +71,6 @@ class Routing
|
||||
$path = substr($path, 1);
|
||||
}
|
||||
|
||||
$commitHasPath = $repository->pathExists($commitish, $path);
|
||||
if ($commitHasPath !== true) {
|
||||
$app->abort(404, "\"$path\" does not exist in \"$commitish\".");
|
||||
}
|
||||
|
||||
return array($commitish, $path);
|
||||
}
|
||||
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
{% endblock %}
|
||||
{% endembed %}
|
||||
|
||||
{% if files is not empty %}
|
||||
<table class="tree">
|
||||
<thead>
|
||||
<tr>
|
||||
@@ -54,6 +55,9 @@
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
{% else %}
|
||||
<p>This repository is empty.</p>
|
||||
{% endif %}
|
||||
{% if readme is defined and readme is not empty %}
|
||||
<div class="readme-view">
|
||||
<div class="md-header">
|
||||
|
||||
Reference in New Issue
Block a user