]> khamidou — GitHub mirrors - arcanist.git/commitdiff
Throw properly if there are uncommitted changes under Git
authorepriestley <git@epriestley.com>
Mon, 6 Aug 2012 18:56:01 +0000 (11:56 -0700)
committerepriestley <git@epriestley.com>
Mon, 6 Aug 2012 18:56:01 +0000 (11:56 -0700)
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

index ac71aca369153caa51c880946dc486e078e3c76c..842a0adc561b13a891ce133d680e1407bbb31308 100644 (file)
@@ -578,6 +578,8 @@ EOTEXT
 
           $repository_api->setIncludeDirectoryStateInDiffs(true);
           $this->haveUncommittedChanges = true;
+        } else {
+          throw $ex;
         }
       }
     }