Better behavior when dealing with repositories with empty commits, see #319

This commit is contained in:
Klaus Silveira
2013-05-05 23:31:54 -03:00
parent 35dd1ed084
commit 5ed21119f6
2 changed files with 4 additions and 5 deletions

View File

@@ -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);
}

View File

@@ -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">