mirror of
https://we.phorge.it/source/arcanist.git
synced 2024-11-29 02:02:40 +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:
parent
1b8ce98304
commit
ec35375e96
1 changed files with 6 additions and 0 deletions
|
@ -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() {
|
||||||
|
|
Loading…
Reference in a new issue