public function getCurrentCommit()
{
/** @var $result CallResult */
$result = $this->getGit()->{'rev-parse'}($this->getRepositoryPath(), array('--verify', 'HEAD'));
$result->assertSuccess(sprintf('Cannot rev-parse "%s"', $this->getRepositoryPath()));
return $result->getStdOut();
}