]> khamidou — GitHub mirrors - arcanist.git/commitdiff
Minor, fix inverted condition.
authorepriestley <git@epriestley.com>
Fri, 23 Mar 2012 15:53:47 +0000 (08:53 -0700)
committerepriestley <git@epriestley.com>
Fri, 23 Mar 2012 15:53:47 +0000 (08:53 -0700)
src/workflow/land/ArcanistLandWorkflow.php

index 6b1b47dad32e660b97731bde62c6cec8c25bd57b..c0552a9604bb0c233ef556e3c54c5cf1392d4f7f 100644 (file)
@@ -128,6 +128,8 @@ EOTEXT
       $use_squash = !$this->isHistoryImmutable();
     }
 
+    var_dump($use_squash);
+
     $repository_api = $this->getRepositoryAPI();
     if (!($repository_api instanceof ArcanistGitAPI)) {
       throw new ArcanistUsageException("'arc land' only supports git.");
@@ -248,7 +250,7 @@ EOTEXT
 
     $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
       // the right message.
       chdir($repository_api->getPath());