From: epriestley Date: Thu, 5 Mar 2015 22:44:59 +0000 (-0800) Subject: Check for untracked files in order to fire untracked file prompt X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=c36b4ceb1849ef666a2b94aeeb70c84a1c7da717;p=arcanist.git Check for untracked files in order to fire untracked file prompt 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 --- diff --git a/src/workflow/ArcanistWorkflow.php b/src/workflow/ArcanistWorkflow.php index e0efb972..03a7d3b2 100644 --- a/src/workflow/ArcanistWorkflow.php +++ b/src/workflow/ArcanistWorkflow.php @@ -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