]> khamidou — GitHub mirrors - arcanist.git/commitdiff
Check for untracked files in order to fire untracked file prompt
authorepriestley <git@epriestley.com>
Thu, 5 Mar 2015 22:44:59 +0000 (14:44 -0800)
committerepriestley <git@epriestley.com>
Thu, 5 Mar 2015 22:44:59 +0000 (14:44 -0800)
Summary: Fixes T7465. I think I just missed this when untangling the old logic.

Test Plan: Ran `arc diff` with //only// untrakced files, saw warning.

Reviewers: btrahan, chad

Reviewed By: chad

Subscribers: epriestley

Maniphest Tasks: T7465

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

src/workflow/ArcanistWorkflow.php

index e0efb9729f61d1f69a55e3de53a97c920895aff5..03a7d3b2ffd706382c6fb070b4d7ad8004c5b1cc 100644 (file)
@@ -881,7 +881,7 @@ abstract class ArcanistWorkflow extends Phobject {
     }
 
     $should_commit = false;
-    if ($unstaged || $uncommitted) {
+    if ($untracked || $unstaged || $uncommitted) {
 
       // NOTE: We're running this because it builds a cache and can take a
       // perceptible amount of time to arrive at an answer, but we don't want