Added smooth handling of bad files and commits.

Now simply redirect to the root of the first available branch.
This commit is contained in:
Loic d'Anterroches
2008-07-27 21:38:49 +02:00
parent 8a0a35726c
commit 3dbae6272a
2 changed files with 23 additions and 6 deletions

View File

@@ -66,9 +66,6 @@ class IDF_Git
*/
public function filesAtCommit($commit='HEAD', $folder='')
{
if ('commit' != $this->testHash($commit)) {
throw new Exception(sprintf(__('Not a valid commit: %s.'), $commit));
}
// now we grab the info about this commit including its tree.
$co = $this->getCommit($commit);
if ($folder) {