Page MenuHomec4science

DiffusionGitStableCommitNameQuery.php
No OneTemporary

File Metadata

Created
Sun, Nov 3, 15:07

DiffusionGitStableCommitNameQuery.php

<?php
final class DiffusionGitStableCommitNameQuery
extends DiffusionStableCommitNameQuery {
protected function executeQuery() {
$repository = $this->getRepository();
$branch = $this->getBranch();
list($stdout) = $repository->execxLocalCommand(
'rev-parse --verify %s',
$branch);
$commit = trim($stdout);
return substr($commit, 0, 16);
}
}

Event Timeline