diff --git a/src/workflow/ArcanistDiffWorkflow.php b/src/workflow/ArcanistDiffWorkflow.php index de3818ee..a8e13ab2 100644 --- a/src/workflow/ArcanistDiffWorkflow.php +++ b/src/workflow/ArcanistDiffWorkflow.php @@ -609,6 +609,12 @@ EOTEXT if ($repository_api->supportsCommitRanges()) { $this->parseBaseCommitArgument($this->getArgument('paths')); } + + $head_commit = $this->getArgument('head'); + if ($head_commit !== null) { + $repository_api->setHeadCommit($head_commit); + } + } private function runDiffSetupBasics() {