Summary: the call to setHeadCommit() was accidentally placed in a `if ($background) {}` block, which was removed in
54bea94. This adds the removed call.
Test Plan: used --head, worked as expected
Reviewers: epriestley, #blessed_reviewers
Reviewed By: epriestley, #blessed_reviewers
Subscribers: epriestley, Korvin
Differential Revision: https://secure.phabricator.com/D10447
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() {