]> khamidou — GitHub mirrors - arcanist.git/commitdiff
Fix a newline issue in "arc" workflows
authorepriestley <git@epriestley.com>
Mon, 2 Mar 2015 16:34:46 +0000 (08:34 -0800)
committerepriestley <git@epriestley.com>
Mon, 2 Mar 2015 16:34:46 +0000 (08:34 -0800)
Summary:
We end up with one too few newline here in some workflows, like `arc land` with unstaged changes.

Root issue here is that `phutil_console_prompt|confirm` lead with too much whitespace but that's a harder fix.

Test Plan: Saw reasonable whitespace.

Reviewers: btrahan, chad

Reviewed By: chad

Subscribers: epriestley

Differential Revision: https://secure.phabricator.com/D11927

src/workflow/ArcanistWorkflow.php

index 0b68a2937073f8dabf14b0ff3122e0b8b70028b2..e0efb9729f61d1f69a55e3de53a97c920895aff5 100644 (file)
@@ -930,7 +930,7 @@ abstract class ArcanistWorkflow extends Phobject {
           $uncommitted_list);
       }
 
-      echo implode("\n\n", $lists);
+      echo implode("\n\n", $lists)."\n";
 
       $all_uncommitted = array_merge($unstaged, $uncommitted);
       if ($this->askForAdd($all_uncommitted)) {