1
0
Fork 0
mirror of https://we.phorge.it/source/arcanist.git synced 2024-12-01 19:22:41 +01:00

Merge pull request #62 from bonneval/bugfixUndefinedVariable

Bugfixed undefined variable $commit.
This commit is contained in:
Evan Priestley 2012-12-18 05:38:05 -08:00
commit 955c5b8820

View file

@ -85,7 +85,7 @@ final class ArcanistMercurialAPI extends ArcanistRepositoryAPI {
protected function buildBaseCommit($symbolic_commit) { protected function buildBaseCommit($symbolic_commit) {
if ($symbolic_commit !== null) { if ($symbolic_commit !== null) {
try { try {
$commit = $this->getCanonicalRevisionName($commit); $commit = $this->getCanonicalRevisionName($symbolic_commit);
} catch (Exception $ex) { } catch (Exception $ex) {
throw new ArcanistUsageException( throw new ArcanistUsageException(
"Commit '{$commit}' is not a valid Mercurial commit identifier."); "Commit '{$commit}' is not a valid Mercurial commit identifier.");