示例#1
0
 /**
  * check if the path is equals to a fullPath
  * to tell if it's a blob
  *
  * @param array $outputLines output lines
  *
  * @return mixed
  */
 private function scanPathsForBlob($outputLines)
 {
     // no children, empty folder or blob!
     if (count($this->children) > 0) {
         return;
     }
     // root, no blob
     if ($this->isRoot()) {
         return;
     }
     if (1 === count($outputLines)) {
         $treeObject = Object::createFromOutputLine($this->repository, $outputLines[0]);
         if ($treeObject->getSha() === $this->subject->getSha()) {
             $this->blob = $treeObject;
         }
     }
 }