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(); }
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; }