From: epriestley Date: Mon, 6 Aug 2012 18:56:01 +0000 (-0700) Subject: Throw properly if there are uncommitted changes under Git X-Git-Tag: conduit-6~178 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=fae2adba9ee93f79ec8d39c1194aea4f972e9f34;p=arcanist.git 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 --- 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; } } }