git4idea: IDEADEV-40033: fixed logged assertion
authorConstantine Plotnikov <Constantine.Plotnikov@jetbrains.com>
Wed, 23 Sep 2009 10:34:15 +0000 (14:34 +0400)
committerConstantine Plotnikov <Constantine.Plotnikov@jetbrains.com>
Wed, 23 Sep 2009 10:34:15 +0000 (14:34 +0400)
plugins/git4idea/src/git4idea/checkout/GitCheckoutProvider.java

index dd2a45ba1be168fd5a2079548465bc232e2afa42..d0bbdbf06547dfe99838143faacaf26134062999 100644 (file)
@@ -61,10 +61,12 @@ public class GitCheckoutProvider implements CheckoutProvider {
       clone(project, sourceRepositoryURL, new File(dialog.getParentDirectory()), dialog.getDirectoryName(), dialog.getOriginName());
     int code = GitHandlerUtil.doSynchronously(handler, GitBundle.message("cloning.repository", sourceRepositoryURL), "git clone");
 
-    final VcsDirtyScopeManager mgr = VcsDirtyScopeManager.getInstance(project);
     destinationParent.refresh(true, true, new Runnable() {
       public void run() {
-        mgr.fileDirty(destinationParent);
+        if (!project.isDefault()) {
+          final VcsDirtyScopeManager mgr = VcsDirtyScopeManager.getInstance(project);
+          mgr.fileDirty(destinationParent);
+        }
       }
     });