From fae2adba9ee93f79ec8d39c1194aea4f972e9f34 Mon Sep 17 00:00:00 2001 From: epriestley Date: Mon, 6 Aug 2012 11:56:01 -0700 Subject: [PATCH] Throw properly if there are uncommitted changes under Git Summary: This was accidentally disabled with some Mercurial changes that allowed dirty working copies. Test Plan: Ran `arc diff` with staged changes. Reviewers: nh Reviewed By: nh CC: aran Differential Revision: https://secure.phabricator.com/D3165 --- src/workflow/ArcanistDiffWorkflow.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/workflow/ArcanistDiffWorkflow.php b/src/workflow/ArcanistDiffWorkflow.php index ac71aca3..842a0adc 100644 --- a/src/workflow/ArcanistDiffWorkflow.php +++ b/src/workflow/ArcanistDiffWorkflow.php @@ -578,6 +578,8 @@ EOTEXT $repository_api->setIncludeDirectoryStateInDiffs(true); $this->haveUncommittedChanges = true; + } else { + throw $ex; } } } -- 2.43.0