Beispiel #1
0
 public function testGetInfo()
 {
     $this->assertNotNull($this->git);
     $repo = $this->git->repo(Clips\clips_path('/../../'));
     $head = $repo->getHead();
     $rev = $repo->getRevision($head->getFullname());
     echo $rev->getCommit()->getCommitterDate()->getTimestamp();
 }
Beispiel #2
0
 public function __construct($path = null, $readonly = true)
 {
     if ($path) {
         $this->path = $path;
     } else {
         $this->path = \Clips\clips_path('/../../');
     }
     // If no path is given, let read clips tool's git
     $this->readonly = $readonly;
 }