1
0
Fork 0
mirror of https://we.phorge.it/source/arcanist.git synced 2024-11-25 16:22:42 +01:00

restored --head support

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
This commit is contained in:
Tal Shiri 2014-09-08 14:02:25 -07:00 committed by epriestley
parent 1b8ce98304
commit ec35375e96

View file

@ -609,6 +609,12 @@ EOTEXT
if ($repository_api->supportsCommitRanges()) { if ($repository_api->supportsCommitRanges()) {
$this->parseBaseCommitArgument($this->getArgument('paths')); $this->parseBaseCommitArgument($this->getArgument('paths'));
} }
$head_commit = $this->getArgument('head');
if ($head_commit !== null) {
$repository_api->setHeadCommit($head_commit);
}
} }
private function runDiffSetupBasics() { private function runDiffSetupBasics() {