mirror of
https://we.phorge.it/source/arcanist.git
synced 2024-11-26 00:32:41 +01:00
Minor, fix inverted condition.
This commit is contained in:
parent
61957c4ade
commit
3991e679e7
1 changed files with 3 additions and 1 deletions
|
@ -128,6 +128,8 @@ EOTEXT
|
||||||
$use_squash = !$this->isHistoryImmutable();
|
$use_squash = !$this->isHistoryImmutable();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var_dump($use_squash);
|
||||||
|
|
||||||
$repository_api = $this->getRepositoryAPI();
|
$repository_api = $this->getRepositoryAPI();
|
||||||
if (!($repository_api instanceof ArcanistGitAPI)) {
|
if (!($repository_api instanceof ArcanistGitAPI)) {
|
||||||
throw new ArcanistUsageException("'arc land' only supports git.");
|
throw new ArcanistUsageException("'arc land' only supports git.");
|
||||||
|
@ -248,7 +250,7 @@ EOTEXT
|
||||||
|
|
||||||
$repository_api->execxLocal('checkout %s', $onto);
|
$repository_api->execxLocal('checkout %s', $onto);
|
||||||
|
|
||||||
if ($use_squash) {
|
if (!$use_squash) {
|
||||||
// In immutable histories, do a --no-ff merge to force a merge commit with
|
// In immutable histories, do a --no-ff merge to force a merge commit with
|
||||||
// the right message.
|
// the right message.
|
||||||
chdir($repository_api->getPath());
|
chdir($repository_api->getPath());
|
||||||
|
|
Loading…
Reference in a new issue