// build a map...
$map = array();
foreach($ar as $e) {
+ $e->basename = basename($e->name);
$map[$e->hash] = $e;
}
foreach($revs as $hash => $sobject) {
$event = $this->repo->impl()->commitLogToEvent($sobject);
- $event->basename = basename($map[$hash]->name); // this was previous only done for directories??? why???
-
- $map[$hash] = $this->repo->impl()->commitLogToEvent($sobject);
+
+ $map[$hash] = $this->repo->impl()->commitLogToEvent($sobject); // this was previous only done for directories??? why???
}
return array_values($map);
}