Differential D21510 Diff 51197 src/applications/diffusion/conduit/DiffusionExistsQueryConduitAPIMethod.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/diffusion/conduit/DiffusionExistsQueryConduitAPIMethod.php
Show All 19 Lines | return array( | ||||
'commit' => 'required string', | 'commit' => 'required string', | ||||
); | ); | ||||
} | } | ||||
protected function getGitResult(ConduitAPIRequest $request) { | protected function getGitResult(ConduitAPIRequest $request) { | ||||
$repository = $this->getDiffusionRequest()->getRepository(); | $repository = $this->getDiffusionRequest()->getRepository(); | ||||
$commit = $request->getValue('commit'); | $commit = $request->getValue('commit'); | ||||
list($err, $merge_base) = $repository->execLocalCommand( | list($err, $merge_base) = $repository->execLocalCommand( | ||||
'cat-file -t %s', | 'cat-file -t -- %s', | ||||
$commit); | $commit); | ||||
return !$err; | return !$err; | ||||
} | } | ||||
protected function getSVNResult(ConduitAPIRequest $request) { | protected function getSVNResult(ConduitAPIRequest $request) { | ||||
$repository = $this->getDiffusionRequest()->getRepository(); | $repository = $this->getDiffusionRequest()->getRepository(); | ||||
$commit = $request->getValue('commit'); | $commit = $request->getValue('commit'); | ||||
Show All 18 Lines |