isBare() public method

Tests if repository is a bare repository.
public isBare ( ) : boolean
return boolean
コード例 #1
0
 public function __construct(Repository $repository)
 {
     $this->repository = $repository;
     if ($this->repository->isBare()) {
         throw new LogicException('Can\'t create a working copy on a bare repository');
     }
 }