protected function getAgainst()
{
exec('LC_ALL=en_US.UTF-8 git rev-parse --verify --quiet HEAD', $output, $return);
if (2 === $return) {
throw new \RuntimeException('Finding the HEAD commit hash returned an error');
}
// Check if we're on a semi-secret empty tree
if ($output) {
return 'HEAD';
}
// Initial commit: diff against an empty tree object
return '4b825dc642cb6eb9a060e54bf8d69288fbee4904';
}